示例#1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow  row = dataGridView1.CurrentRow as DataGridViewRow;
            frmcostomaterial frm = new frmcostomaterial(row.Cells["cod"].Value.ToString(), row.Cells["cmat"].Value.ToString());

            op_var.tmp_cantera = row.Cells["cod"].Value.ToString();
            frm.ShowDialog();
        }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(textBox1.Text) && textBox1.Enabled == false)
     {
         frmcostomaterial frm = new frmcostomaterial();
         op_var.tmp_cantera = this.textBox1.Text;
         frm.MdiParent      = this.MdiParent;
         frm.ShowDialog();
     }
     else
     {
         MessageBox.Show("Registre el Propietario de la Cantera o quite el modo de  edición", "SMACOP", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }