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(); } }
protected virtual void OnSelectedShapeChanged() { SelectedShapeChanged?.Invoke(this, EventArgs.Empty); }