Пример #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            file = new TxtFile();
            MainWindow mw = new MainWindow(ref file);

            mw.Show();
        }
Пример #2
0
 private void CreateNew(object sender, RoutedEventArgs e)
 {
     if (file.SaveCheck())
     {
         file             = new TxtFile();
         this.DataContext = file;
     }
 }
Пример #3
0
        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 };
        }
Пример #4
0
 public AboutProgram(ref TxtFile txt)
 {
     InitializeComponent();
     file             = txt;
     this.DataContext = file;
 }
Пример #5
0
 public MainWindow(ref TxtFile txt)
 {
     InitializeComponent();
     file             = txt;
     this.DataContext = file;
 }