private void MenuBarEvent() { fNewTool.Click += (object sender, EventArgs e) => { CommandBox.ClearText(); tabView[Index].Dgv.DataSource = null; }; F0_Open.Click += (object sender, EventArgs e) => { OpenFileDialog(); }; fOpenTool.Click += (object sender, EventArgs e) => { OpenFileDialog(); }; F0_Save.Click += (object sender, EventArgs e) => { SaveFileDialog(false); }; fSaveTool.Click += (object sender, EventArgs e) => { SaveFileDialog(false); }; F0_Overwrite.Click += (object sender, EventArgs e) => { SaveFileDialog(true); }; fOverwriteTool.Click += (object sender, EventArgs e) => { SaveFileDialog(true); }; fOutputTool.Click += (object sender, EventArgs e) => { OutputCsvFile(); }; fCloseTool.Click += (object sender, EventArgs e) => { closeBtn_Click(sender, e); }; F0_Undo.Click += (object sender, EventArgs e) => { CommandBox.Undo(); }; eUndo.Click += (object sender, EventArgs e) => { CommandBox.Undo(); }; F0_Redo.Click += (object sender, EventArgs e) => { CommandBox.Redo(); }; eRedo.Click += (object sender, EventArgs e) => { CommandBox.Redo(); }; eCutTool.Click += (object sender, EventArgs e) => { CommandBox.Cut(); }; eCopyTool.Click += (object sender, EventArgs e) => { CommandBox.Copy(); }; ePasteTool.Click += (object sender, EventArgs e) => { CommandBox.Paste(); }; eSelectTool.Click += (object sender, EventArgs e) => { CommandBox.SelectAll(); }; vMenuTool.Click += (object sender, EventArgs e) => { menuBar.Visible = !menuBar.Visible; }; vToolTool.Click += (object sender, EventArgs e) => { toolBar.Visible = !toolBar.Visible; }; vTabTool.Click += (object sender, EventArgs e) => { tabView.tabBar.Visible = !tabView.tabBar.Visible; }; vInfoTool.Click += (object sender, EventArgs e) => { underBar.Visible = !underBar.Visible; }; hVersionTool.Click += (object sender, EventArgs e) => { using (VerInfoDialog form = new VerInfoDialog()) { form.ShowDialog(); } }; }
private void menuRedo_Click(object sender, EventArgs e) { m_undoRedoBuffer.Redo(); UpdateUndoRedoStatus(); }