예제 #1
0
 private void ChangeUIForCreation()
 {
     try
     {
         uDebugLogAdd("Changing UI for creation");
         _action                  = StartEditorAction.Create;
         lblTitle.Text            = "Start Process Creator";
         WinStartProcEditor.Title = "Start Process Creator";
         BtnFinish.Content        = "Create";
         SetFieldsToDefault();
         uDebugLogAdd("Finished changing UI for creation");
     }
     catch (Exception ex)
     {
         LogException(ex);
     }
 }
예제 #2
0
 private void ChangeUIForEditing(StartProcessItem startItem)
 {
     try
     {
         uDebugLogAdd($"Changing UI for Editing: {startItem.Name}");
         _action                  = StartEditorAction.Edit;
         lblTitle.Text            = "Start Process Editor";
         WinStartProcEditor.Title = "Start Process Editor";
         BtnFinish.Content        = "Save";
         TxtProcPath.Text         = startItem.Path;
         TxtProcArgs.Text         = startItem.Args;
         TxtFriendlyName.Text     = startItem.Name;
         string comboString = startItem.MoveAfterStart ? "Yes" : "No";
         if (Toolbox.FindComboBoxItemByString(ComboWindowMove, comboString) != null)
         {
             ComboWindowMove.SelectedItem = Toolbox.FindComboBoxItemByString(ComboWindowMove, comboString);
         }
         uDebugLogAdd($"Finished UI update for editing");
     }
     catch (Exception ex)
     {
         LogException(ex);
     }
 }