private void CreateWPF_Click(object sender, RoutedEventArgs e) { CSharpFactory wpf = new CSharpFactory(); wpf.createGUI(listItems); EditingWPF.MainWindow emw = new EditingWPF.MainWindow(); emw.Show(); Reset(); }