program.cs

来自「包包版网络游戏大厅和网络桥牌系统」· CS 代码 · 共 32 行

CS
32
字号
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace PlayCardClient
{
    static class Program
    {
        const int nRetryLimit = 3;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            int i = 0;
            DialogResult dr = DialogResult.Retry;
            do
            {
                dr = LoginForm.ShowLogin();
                if (dr == DialogResult.Cancel)
                    break;
            } while (dr != DialogResult.OK && (++i) < nRetryLimit);

            if (dr == DialogResult.OK)
            {
                Application.Run(new MainForm());
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?