private void btnResetDatabank_Click(object sender, RoutedEventArgs e) { var file = this.globalConfiguration.WPFConfig.ProjectFiles.Where(x => x.Name == "DefaultDBScript").FirstOrDefault(); pageScriptRunner page = new pageScriptRunner(this.globalConfiguration.WPFConfig.GetMainConnectionString, file.Value);; ContainerWindowSimple win = new ContainerWindowSimple(page, "Script Runner (Reset Database)"); win.Show(); }
private void OpenFormClick(object sender, RoutedEventArgs e) { ModelNotifiedForCustomerDemographics itemSelected = (ModelNotifiedForCustomerDemographics)DataGridCustomerDemographics.SelectedItem; if (itemSelected == null) { return; } //Uncomment this line to allow navigation //this.FrameMainWindow.Navigate(this.DetailListGeoCities); /* COMPILE ERROR WARNING!!! If this line crash: * a) Generate the FORM version of this list. * b) Re-generate the LIST without the "OpenForm" feature.# * c) Remove this chunk of code*/ MyApp.WPFForms.CustomerDemographics.FormWPFCustomerDemographics page = new MyApp.WPFForms.CustomerDemographics.FormWPFCustomerDemographics(config); page.LoadForm(itemSelected.CustomerTypeID); page.Setup_SetLanguage(CurrentLanguage); ContainerWindowSimple win = new ContainerWindowSimple(page, "Form CustomerDemographics"); win.Show(); }