コード例 #1
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            personel      personel = new personel();
            personelKarti pk       = new personelKarti();

            pk.ShowDialog();
        }
コード例 #2
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            float maas = float.Parse(maasitxt.Text.ToString());



            personel pe = new personel();

            pe.adi      = metroTextBox1.Text.ToString();
            pe.soyadi   = soyaditxt.Text;
            pe.tckNo    = tcknotxt.Text;
            pe.adres    = adresrtxt.Text;
            pe.kanGrubu = kanGrubucmb.SelectedItem.ToString();
            pe.gorevi   = gorevcmb.SelectedItem.ToString();
            pe.maas     = maas;

            //pe.fotograf = Environment.CurrentDirectory + "headless.jpg";
            vt.personel.Add(pe);
            vt.SaveChanges();
        }