/// <summary> /// Edits the SelectedConditionalItem. /// </summary> /// <param name="npcChatConditionals">The NPCChatConditionalBases that can be chosen.</param> public void EditCurrentItem(NPCChatConditionalBase[] npcChatConditionals) { if (SelectedConditionalItem == null) { return; } var conditionalEditorForm = new NPCChatConditionalEditorForm(SelectedConditionalItem, npcChatConditionals) { StartPosition = FormStartPosition.CenterScreen }; conditionalEditorForm.Show(); conditionalEditorForm.FormClosed += conditionalEditorForm_FormClosed; }
/// <summary> /// Edits the SelectedConditionalItem. /// </summary> /// <param name="npcChatConditionals">The NPCChatConditionalBases that can be chosen.</param> public void EditCurrentItem(NPCChatConditionalBase[] npcChatConditionals) { if (SelectedConditionalItem == null) return; var conditionalEditorForm = new NPCChatConditionalEditorForm(SelectedConditionalItem, npcChatConditionals) { StartPosition = FormStartPosition.CenterScreen }; conditionalEditorForm.Show(); conditionalEditorForm.FormClosed += conditionalEditorForm_FormClosed; }