示例#1
0
 private void button5_Click(object sender, EventArgs e)
 {
     label12.Visible       = true;
     listView4.Visible     = true;
     dataGridView1.Visible = false;
     Notice_Update();
     ReportBox.SendToBack();
     NoticeBox.BringToFront();
 }
示例#2
0
        private void RecordLabel_Click(object sender, EventArgs e)
        {
            NoticeBox.BringToFront();
            listView1.Clear();
            listView1.Columns.Add("通知内容", 400);
            listView1.Columns.Add("通知时间", 150);
            List <string[]> history = GetNotice(登录界面.mail);

            for (int i = 0; i < history.Count; i++)
            {
                ListViewItem It = new ListViewItem();
                It.Text = history[i][0];
                It.SubItems.Add(history[i][1]);
                listView1.Items.Add(It);
            }
            this.listView1.View = System.Windows.Forms.View.Details;
        }