Ejemplo n.º 1
0
        private void Create_button_Click(object sender, RoutedEventArgs e)
        {
            Name_textbox.Focus();
            Model.Create_Object(Name_textbox.Text, Security_level_textbox.Text, Objects, Model_Name, Current_User);

            Name_textbox.Clear();
            Security_level_textbox.Clear();
        }
Ejemplo n.º 2
0
 private void Email_textbox_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         if (Email_textbox.Text != "")
         {
             Name_textbox.Focus();
         }
     }
 }
Ejemplo n.º 3
0
 private void Create_button_Click(object sender, RoutedEventArgs e)
 {
     Name_textbox.Focus();
     if (Subject_radiobutton.IsChecked == true)
     {
         Model.Create_Subject(Name_textbox.Text, Security_level_textbox.Text, Subjects, Model_Subject.Get_Hash(Passwordbox.Password));
         Passwordbox.Clear();
     }
     else
     {
         Model.Create_Object(Name_textbox.Text, Security_level_textbox.Text, Objects, Model_Name, Current_User);
     }
     Name_textbox.Clear();
     Security_level_textbox.Clear();
 }