/// <summary> /// 公告 /// </summary> private void showNotice() { OpenNotice opneNotice = new OpenNotice(); opneNotice.Activate(); opneNotice.TopMost = true; opneNotice.ShowDialog(); }
private void button_Click(object sender, EventArgs e) { try { Control ctl = sender as Control; if (ctl != null) { NoticeIDX = int.Parse(ctl.Parent.Name); OpenNotice opennotice = new OpenNotice(this); opennotice.ShowDialog(); } } catch (Exception ex) { MessageBox.Show("Failed."); } }