예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmUjCikk fc = new frmUjCikk();
            fc.ShowDialog();

            if (fc.DialogResult == DialogResult.OK)
            {
                new_cikk_id = fc.newCikk.CIKK_ID;

                lblCikk.Text = fc.newCikk.MEGNEVEZES;

                lblMert.Text = fc.newCikk.MEGYS_MEGNEVEZES;

            }
        }
예제 #2
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     frmUjCikk fu = new frmUjCikk();
     fu.ShowDialog();
     refreshDataset(-1);
 }
예제 #3
0
 private void toolStripButton1_Click_1(object sender, EventArgs e)
 {
     int tmp_cikk_id;
     if (cIKKBindingSource.Current != null)
     {
         frmUjCikk fu = new frmUjCikk();
         tmp_cikk_id = (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"];
         fu.CikkID = (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"];
         fu.ShowDialog();
         refreshDataset(tmp_cikk_id);
     }
 }
예제 #4
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     int tmp_cikk_id;
     if (cIKKBindingSource.Current != null)
     {
         frmUjCikk fu = new frmUjCikk();
         tmp_cikk_id = (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"];
         fu.CikkID = (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"];
         fu.ShowDialog();
         refreshDataset(tmp_cikk_id);
     }
 }