Esempio n. 1
0
        public MainForm(List <string> files)
        {
            if (files.Count != 0)
            {
                FirstFiles = files;
            }

            InitializeComponent();
            thisGenerateButtonText = this.GenerateButton.Text;

            saveFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            myPreambleForm = new PreambleForm(this);
            myOutputForm   = new OutputForm(this);

            sourceTextBox.Highlighter     = Sgry.Azuki.Highlighter.Highlighters.Latex;
            sourceTextBox.Resize         += delegate { sourceTextBox.ViewWidth = sourceTextBox.ClientSize.Width; };
            sourceTextBox.ShowsHScrollBar = false;
            sourceTextBox.Document.WordProc.EnableWordWrap = false;
            sourceTextBox.Document.EolCode = System.Environment.NewLine;
            Sgry.Azuki.UserPref.Antialias  = Sgry.Azuki.Antialias.Default;
            loadSettings();

            if (InputFromTextboxRadioButton.Checked)
            {
                ActiveControl = sourceTextBox;
            }
            else
            {
                ActiveControl = inputFileNameTextBox;
            }
        }
Esempio n. 2
0
        public MainForm(List<string> files) {
            if(files.Count != 0) FirstFiles = files;

            InitializeComponent();
            thisGenerateButtonText = this.GenerateButton.Text;

            saveFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            myPreambleForm = new PreambleForm(this);
            myOutputForm = new OutputForm(this);

            sourceTextBox.Highlighter = Sgry.Azuki.Highlighter.Highlighters.Latex;
            sourceTextBox.Resize += delegate { sourceTextBox.ViewWidth = sourceTextBox.ClientSize.Width; };
            sourceTextBox.ShowsHScrollBar = false;
            sourceTextBox.Document.WordProc.EnableWordWrap = false;
            sourceTextBox.Document.EolCode = System.Environment.NewLine;
            Sgry.Azuki.UserPref.Antialias = Sgry.Azuki.Antialias.Default;
            loadSettings();

            if(InputFromTextboxRadioButton.Checked) ActiveControl = sourceTextBox;
            else ActiveControl = inputFileNameTextBox;
        }