Exemple #1
0
 private void btnNewVariable_Click(object sender, EventArgs e)
 {
     View.EqpdatavariableForm dlg = new View.EqpdatavariableForm();
     dlg.objEqpdatavariable         = new Eqpdatavariable();
     dlg.objEqpdatavariable.dv_type = 2;
     dlg.ShowDialog();
     loadCbListVariable();
 }
Exemple #2
0
        private void metroGridlinkedVariable_Click(object sender, EventArgs e)
        {
            int Count = metroGridlinkedVariable.SelectedRows.Count;

            if (Count > 0)
            {
                DataGridViewRow          row = metroGridlinkedVariable.SelectedRows[0];
                Eqpdatavariable          obj = new Eqpdatavariable(row);
                View.EqpdatavariableForm dlg = new View.EqpdatavariableForm();
                dlg.objEqpdatavariable = obj;
                dlg.ShowDialog();
                //
                loadLinkedVariable(objSelectedReport.er_id);
                //
            }
        }
Exemple #3
0
 private void metroGridEquipmentDataVariable_Click(object sender, EventArgs e)
 {
     if (metroGridEquipmentDataVariable.SelectedRows.Count > 0)
     {
         DataGridViewRow          row = metroGridEquipmentDataVariable.SelectedRows[0];
         Eqpdatavariable          obj = new Eqpdatavariable(row);
         View.EqpdatavariableForm dlg = new View.EqpdatavariableForm();
         dlg.objEqpdatavariable = obj;
         dlg.ShowDialog();
         //
         if (dlg.DialogResult == DialogResult.OK)
         {
             loadEquipmentDataVariavle();
         }
         //
     }
 }