Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }