Example #1
0
        private void HandleTimerTick(object sender, EventArgs e)
        {
            mTimer.Enabled = false;
            Hide();

            if (string.IsNullOrEmpty(Properties.Settings.Default.Email) ||
                string.IsNullOrEmpty(Properties.Settings.Default.Password))
            {
                var form = new SettingsDialog();
                if (form.ShowDialog() == DialogResult.OK)
                {
                    Logout();
                    Login();
                }
            }
        }
Example #2
0
 private void HandleSettingsClick(object sender, EventArgs e)
 {
     var form = new SettingsDialog();
     if (form.ShowDialog() == DialogResult.OK)
     {
         Logout();
         Login();
     }
 }