コード例 #1
0
        private void créerToolStripMenuItem4_Click(object sender, EventArgs e)
        {
            ToolCreate   tc = new ToolCreate();
            DialogResult dr = tc.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                Project.Save(Project.CurrentProject, ConfigDirectories.GetDocumentsFolder(), AppDomain.CurrentDomain.GetData("fileName").ToString());
                Project.CurrentProject.ReloadProject();
            }
        }
コード例 #2
0
        private void btnCreateTool_Click(object sender, EventArgs e)
        {
            ToolCreate   tc = new ToolCreate();
            DialogResult dr = tc.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                Library.Project.Save(Library.Project.CurrentProject, ConfigDirectories.GetDocumentsFolder(), AppDomain.CurrentDomain.GetData("fileName").ToString());
                Library.Project.CurrentProject.ReloadProject();
                int index = this.cmbTools.Items.Add(tc.txtName.Text);
                this.cmbTools.Text = tc.txtName.Text;
            }
        }