Esempio n. 1
0
        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();
                }
            });
        }
Esempio n. 2
0
 public void CreateNewScript()
 {
     //Add script component
     ScriptComponents.Add(new ScriptComponent());
     RefreshTriggerItems();
 }