private void bttnBack_Click(object sender, EventArgs e) { Hide(); Overview ovr = new Overview(_currentCostumer); ovr.Show(); }
private void bttnLogin_Click(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(txtbUserName.Text) && !string.IsNullOrWhiteSpace(txtbPassword.Text)) { _UserName = txtbUserName.Text; _Password = txtbPassword.Text; Customer customer = new Customer(_UserName, _Password); if (customer.TCNO == null) { MessageBox.Show("yanlış giriş yaptınız!"); } else { Overview ovr = new Overview(customer); this.Hide(); ovr.Show(); } } }