private void DeleteScript() { var dialogParams = new DialogParameters(); dialogParams.Add("Message", "Are you sure to delete this?"); _dialogService.ShowDialog(DialogNames.CONFIRMATION_DIALOG, dialogParams, (result) => { if (result.Result == ButtonResult.OK) { var scriptToDeleteIndex = SelectedTriggerItemIndex; SelectedTriggerItemIndex = -1; ScriptComponents.RemoveAt(scriptToDeleteIndex); RefreshTriggerItems(); } }); }
public void CreateNewScript() { //Add script component ScriptComponents.Add(new ScriptComponent()); RefreshTriggerItems(); }