Exemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     this.dialogs       = new Dialogs(Textbox);
     this.wc            = new WindowController();
     this.fileFunctions = new FileFunctions(Textbox);
     this.editFunctions = new EditFunctions(Textbox);
     this.textFunctions = new TextFunctions(Textbox, wc);
 }
Exemplo n.º 2
0
 public FontChooserWindow(WindowController wc)
 {
     InitializeComponent();
     fontComboBox.Items.Add(new FontComboBoxItem {
         Name = "Tahoma", Value = new FontFamily("Tahoma")
     });
     fontComboBox.Items.Add(new FontComboBoxItem {
         Name = "Arial", Value = new FontFamily("Arial")
     });
     fontComboBox.Items.Add(new FontComboBoxItem {
         Name = "Times New Roman", Value = new FontFamily("Times New Roman")
     });
     fontComboBox.SelectedIndex = 0;
     this.wc = wc;
 }
Exemplo n.º 3
0
 public TextFunctions(RichTextBox t, WindowController wc)
 {
     this.t  = t;
     this.wc = wc;
 }
Exemplo n.º 4
0
        public void fontSizePickerDialog(WindowController wc)
        {
            FontSizeChooserWindow fontSizeDialog = new FontSizeChooserWindow(wc);

            fontSizeDialog.ShowDialog();
        }
Exemplo n.º 5
0
        public void colorPickerDialog(WindowController wc)
        {
            ColorDialog colorDialog = new ColorDialog(wc);

            colorDialog.ShowDialog();
        }
Exemplo n.º 6
0
        public void fontChooserDialog(WindowController wc)
        {
            FontChooserWindow fcw = new FontChooserWindow(wc);

            fcw.ShowDialog();
        }
Exemplo n.º 7
0
 public ColorDialog(WindowController wc)
 {
     this.wc = wc;
     InitializeComponent();
 }