예제 #1
0
            public XMLRadioButton(XMLChooser mainForm, string xmlLocation)
            {
                this.mainForm = mainForm;

                this.AutoSize  = true;
                this.Name      = xmlLocation;
                this.Text      = xmlLocation.Split('\\').Last();
                this.ForeColor = Color.WhiteSmoke;

                Click    += new EventHandler(this.ClickEvent);
                KeyPress += new KeyPressEventHandler(this.KeyPressEvent);
            }
예제 #2
0
            public RadioButtonPanel(XMLChooser mainForm, int rBtnHeight)
            {
                this.mainForm  = mainForm;
                this.AutoSize  = true;
                this.GrowStyle = TableLayoutPanelGrowStyle.AddColumns;

                var refObj = mainForm.Seletus;

                this.Location = new Point(refObj.Right + refObj.Margin.Right, refObj.Top);

                this.Height   = mainForm.Height - refObj.Top;
                this.RowCount = this.Height / rBtnHeight;
            }