Пример #1
0
        // NOUVELLE FENETRE
        private IUGConceptor CreateNewConcepteur(string text)
        {
            IUGConceptor concepteurr = new IUGConceptor();

            concepteurr.Text = text;
            return(concepteurr);
        }
Пример #2
0
        private void menuItemTaskList_Click(object sender, EventArgs e)
        {
            IUGConceptor concepteur = CreateNewConcepteur();

            if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
            {
                concepteur.MdiParent = this;
                concepteur.Show();
            }
            else
            {
                concepteur.Show(dockPanel);
            }
        }
Пример #3
0
        private IUGConceptor CreateNewConcepteur()
        {
            IUGConceptor Concepteurr = new IUGConceptor();

            int    count = 1;
            string text  = $"Document{count}";

            while (FindDocument(text) != null)
            {
                count++;
                text = $"Document{count}";
            }

            Concepteurr.Text = text;
            Concepteurr.Font = new Font("Microsoft Sans Serif", 7);
            // Concepteurr. = new Font("Microsoft Sans Serif", 7);
            return(Concepteurr);
        }
Пример #4
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            if (Home.m_solutionExplorer.txtDirectory.Text == "")
            {
                Home.m_solutionExplorer.txtDirectory.Text = pathosm;
                Home.m_solutionExplorer.Actualiser();
            }
            if (metroRadioButton2.Checked == true)
            {
                Home.m_solutionExplorer.New_IUG(pathosmtextBox.Text, pathcpctextBox.Text, nameccplustextBox.Text);
                IUGConceptor conceptordesk = new IUGConceptor();
                conceptordesk.New_Desktop(pathosmtextBox.Text, pathcpctextBox.Text);
                conceptordesk.Show(Home.dockPanel);
                conceptordesk.Text = nameccplustextBox.Text + ".osm [Design]";
                Close();
            }
            if (metroRadioButton3.Checked == true)
            {
                Home.m_solutionExplorer.New_CPC(pathosmtextBox.Text, pathcpctextBox.Text, nameccplustextBox.Text);
                Doc conceptordesk = new Doc();

                conceptordesk.Show(Home.dockPanel);
                conceptordesk.Text = nameccplustextBox.Text + ".cpc";
                conceptordesk.metroTextBox1.Text = pathcpctextBox.Text;
                Close();
            }
            else
            {
                // Home.m_solutionExplorer.New_IUG(pathtextBox.Text,nametextBox.Text);
                Home.m_solutionExplorer.New_IUG(pathosmtextBox.Text, pathcpctextBox.Text, nameccplustextBox.Text);
                IUGConceptor conceptor = new IUGConceptor();
                conceptor.New_Host(pathosmtextBox.Text, pathcpctextBox.Text);
                conceptor.Show(Home.dockPanel);
                conceptor.Text = nameccplustextBox.Text + ".osm [Design]";
                Close();
            }
        }