// Вход в систему 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); } }
public CartForm() { InitializeComponent(); f1 = (NoteBookForm)Owner; }