Beispiel #1
0
        private void 新增ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormHDetail form = new FormHDetail(DetailFormUseState.Add);
            if (form.ShowDialog() == DialogResult.OK)
            {
                m_Datas.Add(form.Entity);

                RefreshList();
            }
        }
Beispiel #2
0
        private void 新增ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormHDetail form = new FormHDetail(DetailFormUseState.Add);

            if (form.ShowDialog() == DialogResult.OK)
            {
                m_Datas.Add(form.Entity);

                RefreshList();
            }
        }
Beispiel #3
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (lvwMain.SelectedItems.Count <= 0) return;

            HField field = lvwMain.SelectedItems[0].Tag as HField;
            FormHDetail form = new FormHDetail(DetailFormUseState.Edit);
            form.Entity = field;
            if (form.ShowDialog() == DialogResult.OK)
            {
                RefreshList();
            }
        }
Beispiel #4
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (lvwMain.SelectedItems.Count <= 0)
            {
                return;
            }

            HField      field = lvwMain.SelectedItems[0].Tag as HField;
            FormHDetail form  = new FormHDetail(DetailFormUseState.Edit);

            form.Entity = field;
            if (form.ShowDialog() == DialogResult.OK)
            {
                RefreshList();
            }
        }