Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
            }
        }
Пример #3
0
        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();
            }
        }
Пример #4
0
        private void OnShowAllStats(object sender, EventArgs e)
        {
            DialogStats dialog = new DialogStats(ResourcesHandler.GetAllDialogues());

            dialog.ShowDialog();
        }