/// <summary> /// Fire Remvoe Action Event /// </summary> /// <param name="sender">The Sender</param> /// <param name="args">The Event Arguments</param> protected virtual void OnRemoveAction(object sender, ActionEditorControlEventArgs args) { try { RemoveAction?.Invoke(sender, args); } catch (Exception caught) { logger.Error("Unexpected Error Firing Remove Action Event", caught); throw; } }
public SkypeContext() { Users = new ObservableCollection <SkypeUser>(); TestCommand = new DelegateCommand(() => { SkypeCommandLauncher.StartCall("echo123"); }); AddCommand = new DelegateCommand(() => { AddAction?.Invoke(); }); RemoveCommand = new DelegateCommand(() => { RemoveAction?.Invoke(); }); }