private void backToStart_Click(object sender, EventArgs e) { Properties.Settings.Default.CurrentUser = null; Close(); StartForm ST = new StartForm(); ST.Show(); backToStart.Visible = false; }
private void btnDisabled_Click(object sender, EventArgs e) { var result = MessageBox.Show("Вы точно хотите отключить свой профиль?", "Отключение профиля", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { Client.DeleteUser(Properties.Settings.Default.CurrentUser.Id); Close(); StartForm SF = new StartForm(); SF.Show(); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Client.Initialize(); StartForm a = new StartForm(); a.Show(); Application.Run(); }