/// <summary> /// /// </summary> /// <param name="cmd"></param> /// <param name="sender"></param> /// <param name="e"></param> public static void Execute(ICommand cmd, object sender, ExecutedEventArgs e) { if (m_cmdExecutes.ContainsKey(cmd)) { m_cmdExecutes[cmd](sender, e); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void ICommand.Execute(object sender, ExecutedEventArgs e) { CommandManager.Execute(this, sender, e); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <returns></returns> bool ICommand.CanExecute(object sender, ExecutedEventArgs e) { throw new NotSupportedException(""); }