public void Edit() { if (CurrentData != null) { var dlg = m_creator.CreateDialog <DlgSalesPerformanceEditViewModel>(o => o.Data = CurrentData); var arg = new Dictionary <string, object>(); arg.Add("Width", 470); arg.Add("Height", 560); arg.Add("ResizeMode", 0); m_window.ShowDialog(dlg, null, arg); } }
public void ShowSalesPerformance(SalesPerformanceItem obj) { var dlg = m_creator.CreateDialog <DlgSalesPerformanceForCustomerViewModel>(o => o.Root = obj); m_window.ShowDialog(dlg); }