コード例 #1
0
ファイル: FormMain.cs プロジェクト: chantsunman/CSharpGL
 private void addIntermediateStructure_Click(object sender, EventArgs e)
 {
     var dlg = new FormInsertIntermediateStructure(this.currentFile);
     if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         IntermediateStructure field = dlg.Result;
         this.lstStructure.Items.Add(field);
         this.currentFile.StrutureList.Add(field);
     }
 }
コード例 #2
0
ファイル: FormMain.cs プロジェクト: bobbyzhu/CSharpGL
        private void addIntermediateStructure_Click(object sender, EventArgs e)
        {
            var dlg = new FormInsertIntermediateStructure(this.currentFile);

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                IntermediateStructure field = dlg.Result;
                this.lstStructure.Items.Add(field);
                this.currentFile.StrutureList.Add(field);
            }
        }