Beispiel #1
0
        private void backToStart_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.CurrentUser = null;
            Close();
            StartForm ST = new StartForm();

            ST.Show();
            backToStart.Visible = false;
        }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Client.Initialize();

            StartForm a = new StartForm();

            a.Show();

            Application.Run();
        }