Example #1
0
        private void openToolStripButton_Click(object sender, EventArgs e)
        {
            using (var dialog = new OpenFileDialog())
            {
                dialog.Filter      = Resources.FileDialogFilter;
                dialog.Title       = Resources.OpenFileDialogTitle;
                dialog.Multiselect = true;

                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                foreach (string fileName in dialog.FileNames)
                {
                    EditorAppContext.OpenForm(fileName);
                }

                if (string.IsNullOrEmpty(filePath) && sciEditor.TextLength <= 0)
                {
                    Close();
                }
            }
        }
Example #2
0
 private void newToolStripButton_Click(object sender, EventArgs e)
 {
     EditorAppContext.OpenForm(string.Empty);
 }