private void ChangeState(object row)
        {
            var script = (Script)row;

            if (script != null)
            {
                Helpers.Ui.SetStateColors(script);
                ProcessScript.ChangeScriptState(script);
                ProcessScript.SaveScriptToMaster(script);
            }
        }
예제 #2
0
 private void ChangeState(object row)
 {
     try
     {
         var script = (Script)row;
         if (script != null)
         {
             Helpers.Ui.SetStateColors(script);
             ProcessScript.ChangeScriptState(script);
             ProcessScript.SaveScriptToMaster(script);
         }
     }
     catch (Exception ex)
     {
         Log.Logger.Error($"{Constants.ChangeState}: {Constants.Message}: {ex.Message}\n " +
                          $"{Constants.StackTrace}: {ex.StackTrace}\n {Constants.InnerException}: {ex.InnerException}");
     }
 }