Exemple #1
0
        private void worker_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            PBar.Value = e.ProgressPercentage;

            if (PBar.Value == PBar.Maximum)
            {
                this.Close();
                ace.Show();
            }
        }
Exemple #2
0
        private void changeButton_Click(object sender, RoutedEventArgs e)
        {
            int data = 0;

            data = checkOldCredentials();
            if (data == 1)
            {
                AceLogin ace = new AceLogin();
                update_credentials();
                this.Hide();
                ace.Show();
            }
        }