Exemple #1
0
        /// <summary>
        /// 公告
        /// </summary>
        private void showNotice()
        {
            OpenNotice opneNotice = new OpenNotice();

            opneNotice.Activate();
            opneNotice.TopMost = true;
            opneNotice.ShowDialog();
        }
Exemple #2
0
 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.");
     }
 }