protected override void OnClick() { if (_dlg != null) { return; } _dlg = new CommonUseWindow(); _dlg.Closing += ProWin_Closing; _dlg.Owner = FrameworkApplication.Current.MainWindow; _dlg.Show(); }
void ProWin_Closing(object sender, System.ComponentModel.CancelEventArgs e) { _dlg = null; }