示例#1
0
        public void CreateIOM(IIOMSettings structuralSettings, IDEAProgress progress)
        {
            var generator = new IOMGenerator4();

            char[] charsToTrim       = { ',', '.', ' ' };
            string sourceProjectPath = System.IO.Path.GetDirectoryName(structuralSettings.FileName);
            string projectName       = System.IO.Path.GetFileNameWithoutExtension(structuralSettings.FileName).TrimEnd(charsToTrim);
            string myprojectName     = sourceProjectPath + "\\" + projectName + ".xml";

            structuralSettings.FileName            = generator.CreateIOMTst(myprojectName);
            structuralSettings.CreatedSuccessfully = true;
            //return true;
        }
示例#2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string ideaIOMFileName = string.Empty;

            if (Btn1.IsChecked == true)
            {
                var generator = new IOMGenerator();
                ideaIOMFileName = generator.CreateIOMTst();
            }
            else if (Btn2.IsChecked == true)
            {
                var generator = new IOMGenerator2();
                ideaIOMFileName = generator.CreateIOMTst();
            }
            else if (Btn3.IsChecked == true)
            {
                var generator = new IOMGenerator3();
                ideaIOMFileName = generator.CreateIOMTst();
            }
            else if (Btn4.IsChecked == true)
            {
                var generator = new IOMGenerator4();
                ideaIOMFileName = generator.CreateIOMTst(null);
            }
            else if (Btn5.IsChecked == true)
            {
                var generator = new IOMGenerator5();
                ideaIOMFileName = generator.CreateIOMTst(null);
            }

            if (ideaIOMFileName != null && ideaIOMFileName != string.Empty)
            {
                OpenIOMInIdeaCon(ideaIOMFileName, null, false);
                OnProjOpened();
            }
        }