private void Image_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { this.Hide(); MarkCtrlEventArgs ea = new MarkCtrlEventArgs(MarkCtrlCmd.Hiding); OnMarkCtrl(ea); }
protected virtual void OnMarkCtrl(MarkCtrlEventArgs e) { MarkCtrlEventHandler handler = MarkCtrlHd; if (handler != null) { handler(this, e); } }