public void PasteSelectionSpecial() { PasteOptionsForm form = new PasteOptionsForm(); DialogResult result = form.ShowDialog(General.MainWindow); if (result == DialogResult.OK) { DoPasteSelection(form.Options); } form.Dispose(); }
public void PasteSelectionSpecial() { // Check if possible to copy/paste if (General.Editing.Mode.Attributes.AllowCopyPaste) { PasteOptionsForm form = new PasteOptionsForm(); DialogResult result = form.ShowDialog(General.MainWindow); if (result == DialogResult.OK) { DoPasteSelection(form.Options); } form.Dispose(); } else { // Paste not allowed General.MessageBeep(MessageBeepType.Warning); } }