예제 #1
0
        private void vertexShaderAddField_Click(object sender, EventArgs e)
        {
            var dlg = new FormInsertVertexShaderField(this.currentFile);

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                ShaderField field = dlg.Result;
                this.lstVertexShaderField.Items.Add(field);
                this.currentFile.VertexShaderFieldList.Add(field);
            }
        }
예제 #2
0
 private void vertexShaderAddField_Click(object sender, EventArgs e)
 {
     var dlg = new FormInsertVertexShaderField(this.currentFile);
     if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         ShaderField field = dlg.Result;
         this.lstVertexShaderField.Items.Add(field);
         this.currentFile.VertexShaderFieldList.Add(field);
     }
 }