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); }
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; }