Esempio n. 1
0
        private void btnUserScreen_Click(object sender, EventArgs e)
        {
            UserScreen userScreenForm = new UserScreen(UserName);

            userScreenForm.Owner = this;
            userScreenForm.Show();
            this.Hide();
        }
Esempio n. 2
0
        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");
            }
        }
Esempio n. 3
0
 public AddPrintery(UserScreen us)
 {
     InitializeComponent();
     owner = us;
 }