コード例 #1
0
ファイル: FormMain.cs プロジェクト: tuansolo/CodeBase
        /// <summary>
        /// Displays login dialog box and loads member list in treeview.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void loginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (var form = new FormLogin())
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    labelAnnouncement.Visible = false;

                    _membersPresenter.Display();

                    Status = LoginStatus.LoggedIn;
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// Displays login dialog box and loads member list in treeview.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void loginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (var form = new FormLogin())
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    labelAnnouncement.Visible = false;

                    _membersPresenter.Display();

                    Status = LoginStatus.LoggedIn;
                }
            }
        }