private void fire_SelectedShapeChanged(ChangeReson reason = ChangeReson.Unknown)
 {
     // sayLastSelectedShape(false);
     if (SelectedShapeChanged != null)
     {
         Task t = new Task(new Action(() => { try { SelectedShapeChanged.Invoke(this, new SelectedShapeChangedEventArgs(reason)); } catch { } }));
         Thread.Sleep(10);
         t.Start();
     }
 }
示例#2
0
 protected virtual void OnSelectedShapeChanged()
 {
     SelectedShapeChanged?.Invoke(this, EventArgs.Empty);
 }