예제 #1
0
        private void aboutPathMakerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string info = "\r\n\r\nPathMaker Version ";

            if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
            {
                info += System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion;
            }
            else
            {
                info += Assembly.GetExecutingAssembly().GetName().Version;
            }

            info += "\r\nSchema Version ";
            info += Common.GetResourceString(Strings.PathMakerSchemaVersionRes);

            info += "\r\n\r\n";
            info += "Released to Open Source Community - January 2014";
            info += "\r\n\r\n";
            info += "Convergys Corp. - CIT Professional Services Team";
            info += "\r\n\r\n";
            info += "http://www.convergys.com";
            LogoBox aboutBox = new LogoBox(info);

            aboutBox.Text = "About PathMaker";
            aboutBox.ShowDialog();
        }
예제 #2
0
        private void dialogStateCountToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <Shadow> shadows = PathMaker.LookupAllShadows();

            int interaction = 0;
            int play        = 0;
            int data        = 0;
            int decision    = 0;
            int subdialog   = 0;
            int callsub     = 0;

            foreach (Shadow shadow in shadows)
            {
                switch (shadow.GetShapeType())
                {
                case ShapeTypes.Interaction:
                    interaction++;
                    break;

                case ShapeTypes.Play:
                    play++;
                    break;

                case ShapeTypes.Data:
                    data++;
                    break;

                case ShapeTypes.Decision:
                    decision++;
                    break;

                case ShapeTypes.SubDialog:
                    subdialog++;
                    break;

                case ShapeTypes.CallSubDialog:
                    callsub++;
                    break;

                default:
                    break;
                }
            }

            string info = "\r\n\r\nInteraction\t: " + interaction + "\r\n";

            info += "Play\t\t: " + play + "\r\n";
            info += "Data\t\t: " + data + "\r\n";
            info += "Decision\t\t: " + decision + "\r\n";
            info += "SubDialog\t: " + subdialog + "\r\n";
            info += "Call SubDialog\t: " + callsub + "\r\n";

            LogoBox aboutBox = new LogoBox(info);

            aboutBox.Text = "Dialog State Count";
            aboutBox.ShowDialog();
        }
        private void dialogStateCountToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List<Shadow> shadows = PathMaker.LookupAllShadows();

            int interaction = 0;
            int play = 0;
            int data = 0;
            int decision = 0;
            int subdialog = 0;
            int callsub = 0;

            foreach (Shadow shadow in shadows) {
                switch (shadow.GetShapeType()) {
                    case ShapeTypes.Interaction:
                        interaction++;
                        break;
                    case ShapeTypes.Play:
                        play++;
                        break;
                    case ShapeTypes.Data:
                        data++;
                        break;
                    case ShapeTypes.Decision:
                        decision++;
                        break;
                    case ShapeTypes.SubDialog:
                        subdialog++;
                        break;
                    case ShapeTypes.CallSubDialog:
                        callsub++;
                        break;
                    default:
                        break;
                }
            }

            string info = "\r\n\r\nInteraction\t: " + interaction + "\r\n";
            info += "Play\t\t: " + play + "\r\n";
            info += "Data\t\t: " + data + "\r\n";
            info += "Decision\t\t: " + decision + "\r\n";
            info += "SubDialog\t: " + subdialog + "\r\n";
            info += "Call SubDialog\t: " + callsub + "\r\n";

            LogoBox aboutBox = new LogoBox(info);
            aboutBox.Text = "Dialog State Count";
            aboutBox.ShowDialog();
        }
        private void aboutPathMakerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string info = "\r\n\r\nPathMaker Version ";

            if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
                info += System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion;
            else
                info += Assembly.GetExecutingAssembly().GetName().Version;

            info += "\r\nSchema Version ";
            info += Common.GetResourceString(Strings.PathMakerSchemaVersionRes);

            info += "\r\n\r\n";
            info += "Released to Open Source Community - January 2014";
            info += "\r\n\r\n";
            info += "Convergys Corp. - CIT Professional Services Team";
            info += "\r\n\r\n";
            info += "http://www.convergys.com";
            LogoBox aboutBox = new LogoBox(info);
            aboutBox.Text = "About PathMaker";
            aboutBox.ShowDialog();
        }