示例#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);
     }
 }