private void Button_Click(object sender, RoutedEventArgs e) { DealWizzard dw = new DealWizzard(); Globals.SyncLock = true; try { if (dw.ShowDialog() == true) Refresh(); } catch (Exception ex) { } finally { Globals.SyncLock = false; } }
public override bool DefaultAction() { DealWizzard dw = new DealWizzard(ExternalDealId,ExternalDealName,partner,ProductsPrice); if (dw.ShowDialog() == true) { Globals._tasks.Remove(this); return true; } return false; }