Beispiel #1
0
 //_________________________________________________________________________________________________________
 //_________________________________________________________________________________________________________
 internal void mLoadData_Click(object sender, EventArgs e)
 {
     if (!LoadConfig())
     {
         return;
     }
     Cursor.Current = Cursors.WaitCursor;
     dgObjs.Enabled = false;
     GridHelper.LoadObjectsList(Config.lValuesLinks, dgObjs, oDSrc, GetMax(cMax), cFilter.Text);
     mNewObject.Enabled     = true;
     dgObjs.Enabled         = true;
     mDelete.Enabled        = (dgObjs.RowCount > 0);
     mDeleteMV.Enabled      = (dgObjs.RowCount > 0);
     mCustomActions.Enabled = (dgObjs.RowCount > 0);
     mRunMAProfiles.Enabled = true;// (dgObjs.RowCount > 0);
     mDetails.Enabled       = (dgObjs.RowCount > 0);
     // This calls avoid ArgumentOutOfRangeException when user go down in dgv
     dgObjs.PerformLayout();
     dgAux.PerformLayout();
     dgValues.PerformLayout();
     // Update macro list
     MacroHelper.LoadMacroList(cLstMacros);
     Cursor.Current = Cursors.Default;
     // update last screen data
     SaveScreenData();
 }
Beispiel #2
0
 //_________________________________________________________________________________________________________
 //_________________________________________________________________________________________________________
 private void fFIMSyncTest_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F5 && RowForRefresh != null)
     {
         GridHelper.LoadObjectsList(Config.lValuesLinks, dgObjs, oDSrc, GetMax(cMax), cFilter.Text);
         GridHelper.LoadAttributesList(dgValues, oDSrc, dgObjs, RowForRefresh);
     }
 }
Beispiel #3
0
 //_________________________________________________________________________________________________________
 //_________________________________________________________________________________________________________
 private void lbPfStatus_TextChanged(object sender, EventArgs e)
 {
     if (lbPfStatus1.Tag.ToString() == "END" && lbPfStatus2.Tag.ToString() == "END" && lbPfStatus3.Tag.ToString() == "END" && lbPfStatus4.Tag.ToString() == "END" && lbPfStatus5.Tag.ToString() == "END" && lbPfStatus6.Tag.ToString() == "END")
     {
         mRunMAProfiles.Enabled = true;
         if (RowForRefresh != null)
         {
             GridHelper.LoadObjectsList(Config.lValuesLinks, dgObjs, oDSrc, GetMax(cMax), cFilter.Text);
             GridHelper.LoadAttributesList(dgValues, oDSrc, dgObjs, RowForRefresh);
         }
         cTimerNext.Enabled = true;// Enable a timer to allow pending refresh before continue with macro
     }
 }