示例#1
0
 /// <summary>
 /// Executes the command
 /// </summary>
 /// <param name="parameter">The parameter.</param>
 public virtual void Execute(object parameter)
 {
     if (RaiseCanExecute(parameter))
     {
         if (Executed != null)
         {
             var e = new ExecutedEventArgs(this, parameter);
             Executed(this, e);
         }
     }
 }
 private void ClosePopupCommand_Executed(object sender, ExecutedEventArgs e)
 {
     HideBalloon();
 }
示例#3
0
 /// <summary>
 /// Executes the command
 /// </summary>
 /// <param name="parameter">The parameter.</param>
 public virtual void Execute(object parameter)
 {
     if (RaiseCanExecute(parameter))
     {
         if (Executed != null)
         {
             var e = new ExecutedEventArgs(this, parameter);
             Executed(this, e);
         }
     }
 }