Ejemplo n.º 1
0
        private void Menu_MyCustomItemClicked(Object sender, EventArgs e)
        {
            System.Windows.Forms.ToolStripMenuItem _m = sender as System.Windows.Forms.ToolStripMenuItem;

            if (_m == __m1)
            {
                _m.CheckState = System.Windows.Forms.CheckState.Checked;
                _subdv        = subdivide.quad;
                this.ExpireSolution(true);
            }
            if (_m == __m2)
            {
                _m.CheckState = System.Windows.Forms.CheckState.Checked;
                _subdv        = subdivide.triA;
                this.ExpireSolution(true);
            }
            if (_m == __m3)
            {
                _m.CheckState = System.Windows.Forms.CheckState.Checked;
                _subdv        = subdivide.triB;
                this.ExpireSolution(true);
            }
            if (_m == __m4)
            {
                _m.CheckState = System.Windows.Forms.CheckState.Checked;
                _subdv        = subdivide.triC;
                this.ExpireSolution(true);
            }
        }
Ejemplo n.º 2
0
        public override bool Read(GH_IO.Serialization.GH_IReader reader)
        {
            int f = 1;

            reader.TryGetInt32("subdivide", ref f);
            _subdv = (subdivide)f;
            return(base.Read(reader));
        }