//shows new function template when on button click private void NFuncFile_Click(object sender, RoutedEventArgs e) { var newWin = new funct(); newWin.ShowDialog(); newWin.setTheme(Theme.curTheme); }
public funct() { InitializeComponent(); set(); functWin = this; }