예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            sr.OverwritePrompt = true;
            //sr.WriteZ<Double>(@"D:\Programs\C# gp\GPFileTools\test data\", dataz);

            om.AddCategory("General");
            om.AddProperty(this, "General", "Text");
            om.AddProperty(this, "General", "BackColor");
            om.AddProperty(this, "General", "Width");
            om.AddProperty(this, "General", "AutoSize");
            om.AddProperty(this, "General", "Height");
            om.AddProperty(this, "General", "AutoSizeMode");

            om.AddCategory("Parameters");
            sr.Delimeters = new Char[] { 'a', 'b', 'c', 'e' };
            om.AddObject(sr, "SpreadsheetWriter");
            om.AddObject(this.button2, "Button2");
            om.AddControl(this.numericUpDown1, "Parameters");
            om.AddControl(this.textBox1, "Parameters");
            om.AddProperty(this.numericUpDown1, "Parameters", "Value");
            om.AddCompositeControl(this);
            om.RemoveProperty("Form1", "label1");

            VT1 s;

            s.v1 = 1;
            s.v2 = 2.0;
            om.AddCategory("Structure");
            om.AddObject(s, "Structure");
        }