public QuestState(Quest quest, State state = null) { this.quest = quest; createNew = state == null; OriginalState = state ?? State.Dumb; Action = QuestStateProcessAction.None; ModifiedState = OriginalState.Clone(); InitializeComponent(); Customize(); }
private void deleteButton_Click(object sender, System.EventArgs e) { Action = QuestStateProcessAction.Remove; Close(); }
private void saveButton_Click(object sender, System.EventArgs e) { Action = createNew ? QuestStateProcessAction.Add : QuestStateProcessAction.Edit; Close(); }