Example #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            FormMeeting form = new FormMeeting();

            form.ShowDialog();

            if (form.ChangeFlag && form.MeetingData != null)
            {
                RefreshData();

                PositioningRecord(form.MeetingData.会议编号);
            }
        }
Example #2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                MessageDialog.ShowPromptMessage("请选择要操作的记录后再进行此操作");
                return;
            }

            DataRow row = m_dataSource.Select(string.Format("会议编号 = '{0}'", dataGridView1.SelectedRows[0].Cells["会议编号"].Value))[0];

            FormMeeting form = new FormMeeting(FormMeeting.OperateMode.View, row);

            form.ShowDialog();

            RefreshData();
        }