private void btnUserScreen_Click(object sender, EventArgs e) { UserScreen userScreenForm = new UserScreen(UserName); userScreenForm.Owner = this; userScreenForm.Show(); this.Hide(); }
private void btnLogin_Click(object sender, EventArgs e) { DAL dl = new DAL(); DataTable userInformation = dl.PRC_LOGIN(tbUserName.Text, tbPassword.Text); if (userInformation.Rows.Count != 0) { UserScreen userScreen = new UserScreen(userInformation.Rows[0].ItemArray[6].ToString()); userScreen.Owner = this; userScreen.Show(); this.Hide(); } else { MessageBox.Show("Hatali Kullanici Adi veya Sifre!!!\nTekrar Deneyiniz"); } }
public AddPrintery(UserScreen us) { InitializeComponent(); owner = us; }