Exemple #1
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            this.Hide();
            NewUserForm newUserForm = new NewUserForm();

            newUserForm.PropertyChanged += NewUserChanged;
            newUserForm.Show();
        }
Exemple #2
0
 public void NewUserChanged(object o, PropertyChangedEventArgs e)
 {
     if (o != null)
     {
         if (e.PropertyName == "Success")
         {
             NewUserForm newUserForm = (NewUserForm)o;
             newUserForm.Close();
             this.Show();
         }
         else
         {
             if (this.Visible == false)
             {
                 this.Show();
             }
         }
     }
 }