Beispiel #1
0
        private void DoCellClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            DataGridViewCell cell = errors[2, e.RowIndex];

            if (cell.Tag != null && cell.Tag is CompilerError)
            {
                CompilerError err = (CompilerError)cell.Tag;
                if (err.Line >= 0)
                {
                    SetCaret(err.Line, err.Column);
                }
                else
                {
                    cell = errors[0, e.RowIndex];
                    if (cell.Tag != null && cell.Tag is ICompilable)
                    {
                        ICompilable ic = (ICompilable)cell.Tag;
                        if (ic.FirstSourceLine + err.Line <= 0)
                        {
                            CompilerOptionsForm.MarkErrors(ic, err);
                        }
                    }
                }
            }
        }
Beispiel #2
0
        public static CompilerOptionsForm Form = null;         // A global static intance of the CompilerOptionsForm.

        public CompilerOptionsForm()
        {
            Form = this;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            importForm             = new ImportForm();
            warnings.DropDownStyle = ComboBoxStyle.DropDownList;
            Compiler.Options.Header.TextChanged += handler = new EventHandler(Invalidate);
            Reset();
        }
Beispiel #3
0
 public static void ShowForm()
 {
     if (Form == null || Form.IsDisposed)
     {
         Form = new CompilerOptionsForm();
     }
     if (Form.WindowState == FormWindowState.Minimized)
     {
         Form.WindowState = FormWindowState.Normal;
     }
     Form.Show();
     Form.BringToFront();
 }
Beispiel #4
0
 private void optionsClick(object sender, System.EventArgs e)
 {
     CompilerOptionsForm.ShowForm();
 }