예제 #1
0
        private void btnUpdateNotices_Click(object sender, RoutedEventArgs e)
        {
            NoticeInfo notice = this.datagridNotices.SelectedItem as NoticeInfo;

            if (notice == null)
            {
                MessageBox.Show("请选择公告");
                return;
            }
            AddNoticeWindow win = new AddNoticeWindow(notice);

            win.ShowDialog();
        }
예제 #2
0
        private void btnUpdateNotices_Click(object sender, RoutedEventArgs e)
        {
            NoticeInfo notice = this.datagridNotices.SelectedItem as NoticeInfo;

            //var notices = NoticeController.Instance.GetCheckedNotices();
            if (notice == null)
            {
                MessageBox.Show("请选择公告");
                return;
            }
            //if (notices.Count == 1)
            //{
            //    MessageBox.Show("只能选择一个公告");
            //    return;
            //}
            AddNoticeWindow win = new AddNoticeWindow(notice);

            win.ShowDialog();
        }
예제 #3
0
        private void btnCreateNotices_Click(object sender, RoutedEventArgs e)
        {
            AddNoticeWindow win = new AddNoticeWindow();

            win.ShowDialog();
        }