public static void ShowBox(Window parent, DashboardConfiguration config) { DashboardPreview win = new DashboardPreview(parent, config); win.ShowDialog(); }
private void btnPreview_Click(object sender, RoutedEventArgs e) { // Get data model from UC and pass to preview window DashboardPreview.ShowBox(this, this.ucDashboardEdit.GetConfig()); }