private void Application_Startup(object sender, StartupEventArgs e) { file = new TxtFile(); MainWindow mw = new MainWindow(ref file); mw.Show(); }
private void CreateNew(object sender, RoutedEventArgs e) { if (file.SaveCheck()) { file = new TxtFile(); this.DataContext = file; } }
public FontSettings(ref TxtFile txt) { InitializeComponent(); file = txt; this.DataContext = file; InstalledFontCollection ifc = new InstalledFontCollection(); lvFontFamilys.ItemsSource = ifc.Families.Select(FontFamily => FontFamily.Name); lvFontSize.ItemsSource = new double[] { 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38 }; }
public AboutProgram(ref TxtFile txt) { InitializeComponent(); file = txt; this.DataContext = file; }
public MainWindow(ref TxtFile txt) { InitializeComponent(); file = txt; this.DataContext = file; }