Example #1
0
        private void btnYaddaSaxla_Click(object sender, EventArgs e)
        {
            var      add        = new AddWork();
            string   Name       = txtName.Text;
            string   Surname    = txtSurname.Text;
            DateTime time       = DateTime.Now;
            string   Email      = txtEmail.Text;
            int      GelmeVaxti = Convert.ToInt32(txtGelme.Text);
            int      CixmaVaxti = Convert.ToInt32(txtCixma.Text);
            int      Maaw       = (CixmaVaxti - GelmeVaxti) * 100;
            int      Id         = id;

            id++;

            var yeniIsci = new Isciler(Name, Surname, Email, GelmeVaxti, CixmaVaxti);

            Database.isciler.Add(yeniIsci);
            this.Hide();
            MessageBox.Show("yeni isci evale olundu");
        }
Example #2
0
        private void btnIsciElave_Click(object sender, EventArgs e)
        {
            var AddWork = new AddWork();

            AddWork.Show();
        }