public void SaveAsDocument() { _service.SaveAsDocument(); }
private void FMainMenuStrip_ItemClicked(object sender, EventArgs args) { try { if (sender == FCloseToolStripMenuItem) { Close(); } else if (sender == FPrintToolStripMenuItem || sender == FPrintToolStripButton) { Print(); } else if (sender == FCutToolStripMenuItem || sender == FCutToolStripButton) { new Cut().Execute(_textEdit.ActiveTextAreaControl.TextArea); } else if (sender == FCopyToolStripMenuItem || sender == FCopyToolStripButton) { new Copy().Execute(_textEdit.ActiveTextAreaControl.TextArea); } else if (sender == FPasteToolStripButton || sender == FPasteToolStripButton) { new Paste().Execute(_textEdit.ActiveTextAreaControl.TextArea); } else if (sender == FSelectAllToolStripMenuItem) { new SelectWholeDocument().Execute(_textEdit.ActiveTextAreaControl.TextArea); } else if (sender == FSaveAsDocumentToolStripMenuItem || sender == FSaveAsDocumentToolStripButton) { _service.SaveAsDocument(); ShowSaved(); } else if (sender == FSaveAsFileToolStripMenuItem || sender == FSaveAsFileToolStripButton) { _service.SaveAsFile(); ShowSaved(); } else if (sender == FSaveToolStripMenuItem || sender == FSaveToolStripButton) { _service.Save(); ShowSaved(); } else if (sender == FFindToolStripMenuItem || sender == FFindToolStripButton) { Find(); } else if (sender == FReplaceToolStripMenuItem || sender == FReplaceToolStripButton) { Replace(); } else if (sender == FFindNextToolStripMenuItem || sender == FFindNextToolStripButton) { FindNext(); } else if (sender == FUndoToolStripMenuItem || sender == FUndoToolStripButton) { Undo(); } else if (sender == FRedoToolStripMenuItem || sender == FRedoToolStripButton) { Redo(); } else if (sender == FSplitWindowToolStripMenuItem) { Split(); } } catch (AbortException) { // nothing } }