Example #1
0
 private void SetCFA()
 {
     currentFormattingAction = Auer_Find_Replace.allFormattingActions.First(fa => fa.myActionData.actionName == listActions.SelectedItem.ToString());
     if (currentFormattingAction != null)
     {
         UIInsertActionData();
     }
 }
Example #2
0
 //==================================================CRUD BUTTON ACTIONS================================================
 private void DELETE_button_Click(object sender, EventArgs e)
 {
     if (currentFormattingAction == null)
     {
         return;
     }
     Auer_Find_Replace.allFormattingActions.Remove(currentFormattingAction);
     DataManager.SerializeActions();
     currentFormattingAction = null;
     ResetForm();
 }
Example #3
0
        private void CREATE_button_save_Click(object sender, EventArgs e)
        {
            DataManager.actionData mad = new DataManager.actionData();

            mad.actionName         = CREATE_textbox_name.Text;
            mad.actionType         = CREATE_dropdown_type.SelectedItem.ToString();
            mad.scopeLimitingREGEX = CREATE_dropdown_scope.SelectedItem.ToString();
            mad.fileName           = CREATE_dropdown_file.SelectedItem.ToString();
            mad.actionDescription  = CREATE_textbox_description.Text;

            currentFormattingAction = new FormattingAction(mad);

            Auer_Find_Replace.allFormattingActions.Add(currentFormattingAction);
            DataManager.SerializeActions();
            ResetForm();
        }