Пример #1
0
 // Вход в систему
 private void LoginButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (ValidLoginSuccessful())
         {
             NoteBookForm form1 = new NoteBookForm();
             form1.ID = ID;
             MessageBox.Show("You are logged in!");
             Hide();
             form1.LoginUserDataLabel.Text = login + "/id: " + ID.ToString();
             form1.ShowDialog();
             Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #2
0
 public CartForm()
 {
     InitializeComponent();
     f1 = (NoteBookForm)Owner;
 }