/// <summary> /// Constructor /// </summary> /// <param name="selectFormName"></param> public ArchiveSelectForm(string selectFormName) { InitializeComponent(); IList <WindowSelectInfo> list = ADInfoBll.Instance.GetWindowSelectInfo(selectFormName); if (list == null) { return; } foreach (WindowSelectInfo info in list) { if (!Authority.AuthorizeByRule(info.Visible)) { continue; } MyRadioButton rbg = new MyRadioButton(); rbg.Text = info.Text; rbg.Tag = info; this.flowLayoutPanel1.Controls.Add(rbg); } if (this.flowLayoutPanel1.Controls.Count > 0) { (this.flowLayoutPanel1.Controls[0] as MyRadioButton).Checked = true; } }
/// <summary> /// Constructor /// </summary> /// <param name="selectFormName"></param> public ArchiveSelectForm(string selectFormName) { InitializeComponent(); IList<WindowSelectInfo> list = ADInfoBll.Instance.GetWindowSelectInfo(selectFormName); if (list == null) { return; } foreach (WindowSelectInfo info in list) { if (!Authority.AuthorizeByRule(info.Visible)) continue; MyRadioButton rbg = new MyRadioButton(); rbg.Text = info.Text; rbg.Tag = info; this.flowLayoutPanel1.Controls.Add(rbg); } if (this.flowLayoutPanel1.Controls.Count > 0) { (this.flowLayoutPanel1.Controls[0] as MyRadioButton).Checked = true; } }