private void OnShowStats(object sender, EventArgs e) { if (dockPanel.ActiveDocument is DocumentDialogue) { var document = dockPanel.ActiveDocument as DocumentDialogue; DialogStats dialog = new DialogStats(new List<Dialogue>() { document.Dialogue }, EditorHelper.CurrentLanguage); dialog.ShowDialog(); } }
private void OnDocumentShowStats(object sender, EventArgs e) { Dialogue dialogue = tree.SelectedNode.Tag as Dialogue; if (dialogue != null) { DialogStats dialog = new DialogStats(new List <Dialogue>() { dialogue }); dialog.ShowDialog(); } }
private void OnPackageShowStats(object sender, EventArgs e) { Package package = tree.SelectedNode.Tag as Package; if (package != null) { var dialogues = new List <Dialogue>(); var list = tree.SelectedNode.FlattenList(true); foreach (var node in list) { Dialogue dialogue = node.Tag as Dialogue; if (dialogue != null) { dialogues.Add(dialogue); } } DialogStats dialog = new DialogStats(dialogues); dialog.ShowDialog(); } }
private void OnShowAllStats(object sender, EventArgs e) { DialogStats dialog = new DialogStats(ResourcesHandler.GetAllDialogues()); dialog.ShowDialog(); }