コード例 #1
0
        internal void Logout()
        {
            var newDialog = MessageBox.Show(@"Are you sure you want to log out?", @"Logout", MessageBoxButtons.YesNo);
            if (newDialog != DialogResult.Yes)
            {
                return;
            }
            var loginForm = new Login();

            var positionOptions = new PositionOptions();
            positionOptions.Dispose();
            loginForm.BringToFront();
            loginForm.Show();
        }
コード例 #2
0
 private void BackgroundFormLoad(object sender, EventArgs e)
 {
     var loginForm = new Login();
     loginForm.Show();
     this.Visible = false;
 }