예제 #1
0
        //========================================================
        //    Constructors
        //========================================================
        public MainForm()
        {
            InitializeComponent();
            UserName = string.Empty;

            Settings = new SettingsForm();
            InputName = new NameForm();

            InputName.FormClosed += InputName_FormClosed;
            this.Shown += MainForm_Shown;
        }
예제 #2
0
        //========================================================
        //	Constructors
        //========================================================

        public MainForm()
        {
            InitializeComponent();
            UserName = string.Empty;

            Settings  = new SettingsForm();
            InputName = new NameForm();

            InputName.FormClosed += InputName_FormClosed;
            this.Shown           += MainForm_Shown;
            this.KeyPreview       = true;
            this.KeyDown         += MainForm_KeyDown;
        }