public pCreate() { InitializeComponent(); string test = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); fileTb.Text = test; pcreate = this; }
//opens new project menu and set its theme to the mainwindow theme private void newProj_Click(object sender, RoutedEventArgs e) { var newWin = new pCreate(); newWin.ShowDialog(); newWin.set(Theme.curTheme); }