// -------- Events private void Click(object sender, MouseButtonEventArgs e) { if (type == PropertyType.NPCStatement) { ConversationsPage.Instance.OpenEditorNoEffect(StatementEditor.Open(property as Statement, true, true)); } else if (type == PropertyType.PlayerStatement) { ConversationsPage.Instance.OpenEditorNoEffect(StatementEditor.Open(property as Statement, false, true)); } else if (type == PropertyType.Event) { EventsPage.Instance.OpenEditor(new EventDefaultEditor(property, true)); } else if (type == PropertyType.Condition) { ConditionsPage.Instance.OpenEditor(new ConditionDefaultEditor(property, true)); } else if (type == PropertyType.Objective) { ObjectivesPage.Instance.OpenEditor(new ObjectiveDefaultEditor(property, true)); } else if (type == PropertyType.Journal) { JournalPage.Instance.OpenEntryEditing(property); } else if (type == PropertyType.Item) { ItemsPage.Instance.OpenItemEditing(property); } }
private void Submit(object sender, RoutedEventArgs e) { StatementFactory factory = new StatementFactory(); Statement statement = factory.Create(textBox_Path.Text, (Constants.CardCompanies)comboBox_CardCompany.SelectedItem); var win = new StatementEditor(statement); //var win = new StatementEditor(); win.Owner = GetWindow(this); win.ShowDialog(); }
private void MouseDown_OpenStatementEditor(object sender, MouseButtonEventArgs e) { ConversationsPage.Instance.OpenEditorNoEffect(StatementEditor.Open(statement, true, true)); }