示例#1
0
        /// <summary>
        /// 新建通知
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCreateNewNotice_Click(object sender, EventArgs e)
        {
            FormUpdateNotice form = new FormUpdateNotice(NoticeSource.日常事务, null);

            form.ShowDialog();

            InitForm(InitMode.刷新数据显示, m_currentNode);
        }
示例#2
0
        /// <summary>
        /// 修改通知
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnModifyNotice_Click(object sender, EventArgs e)
        {
            if (CheckOperation(sender as ToolStripDropDownItem))
            {
                try
                {
                    Flow_Notice      notice = (dataGridView1.Tag as List <Flow_Notice>)[dataGridView1.SelectedRows[0].Index];
                    FormUpdateNotice form   = new FormUpdateNotice(NoticeSource.日常事务, notice);

                    form.ShowDialog();

                    InitForm(InitMode.刷新数据显示, m_currentNode);
                }
                catch (Exception err)
                {
                    MessageDialog.ShowErrorMessage(err.Message);
                }
            }
        }