Beispiel #1
0
        private void ekleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmManken manken = new frmManken();

            manken.Owner = this;
            manken.ShowDialog();
        }
Beispiel #2
0
        private void BtnEnter_Click(object sender, EventArgs e)
        {
            login       = new LoginDTO();
            login.Mail  = txtUsername.Text;
            login.Sifre = txtPassword.Text;

            Kullanici result = _userController.Giris(login);

            if (result.Kisi.GetType() == typeof(Manken))
            {
                frmManken manken = new frmManken(result.KullaniciID);
                manken.Owner = this;
                manken.Show();
                this.Hide();
            }
            else if (result.Kisi.GetType() == typeof(Mudur))
            {
                Mudur mudur = result.Kisi as Mudur;
                if (mudur.Unvan == "Operasyon Muduru")
                {
                    frmOrganizasyon org = new frmOrganizasyon();
                    org.Owner = this;
                    org.Show();
                    this.Hide();
                }
                else
                {
                    frmMuhasebe muhasebe = new frmMuhasebe();
                    muhasebe.Owner = this;
                    muhasebe.Show();
                    this.Hide();
                }
            }
            BeniHatirla();
        }