Exemple #1
0
 public EditorForm(Shared shared, string file_path, ParseSettings parse_settings)
 {
     InitializeComponent();
     this.Init();
     this.Shared        = shared;
     this.FilePath      = file_path;
     this.ParseSettings = parse_settings;
     this.SetTitle(false);
     this.DataGridView.CellContextMenuStripNeeded += DataGridView_CellContextMenuStripNeeded;
 }
Exemple #2
0
        private void btnOpen_Click(object sender, EventArgs e)
        {
            if (!ValidateFilePath())
            {
                return;
            }
            var settings = new ParseSettings()
            {
                Delimiter = this.tbDelimiter.Text,
            };

            var f = this.Shared.LaunchForm(() => new EditorForm(this.Shared, this.tbFilePath.Text, settings));

            f.Show();
            this.Close();
        }