private void OpenQuestEvent(EventBase evt) { var editor = new FrmEvent(null) { MyEvent = evt }; editor.InitEditor(true, true, true); editor.ShowDialog(); Globals.MainForm.BringToFront(); BringToFront(); }
private void btnEditTaskEvent_Click(object sender, EventArgs e) { mMyTask.EditingEvent.Name = Strings.TaskEditor.completionevent.ToString(mMyQuest.Name); var editor = new FrmEvent(null) { MyEvent = mMyTask.EditingEvent }; editor.InitEditor(true, true, true); editor.ShowDialog(); Globals.MainForm.BringToFront(); BringToFront(); }
private void lstCommonEvents_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (lstCommonEvents.SelectedNode == null || lstCommonEvents.SelectedNode.Tag == null) { return; } var editor = new FrmEvent(null) { MyEvent = EventBase.Get((Guid)lstCommonEvents.SelectedNode.Tag) }; editor.InitEditor(false, false, false); editor.ShowDialog(); InitEditor(); Globals.MainForm.BringToFront(); BringToFront(); }