Ejemplo n.º 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     XiaCiEditForm form = new XiaCiEditForm();
     XiaCiEditForm.Result = null;
     form.ShowDialog();
     if (XiaCiEditForm.Result != null)
     {
         UccRuntime.Dop.Insert(XiaCiEditForm.Result);
         MessageBox.Show("添加成功!");
     }
     Flush();
 }
Ejemplo n.º 2
0
        private void btnEidt_Click(object sender, EventArgs e)
        {
            XiaCiEditForm form = new XiaCiEditForm();
            try
            {
                form.Bind(lv.Data[lv.SelectedItems[0].Index]);
            }
            catch
            {

            }
            form.ShowDialog();
            UccRuntime.Dop.Update(XiaCiEditForm.Result);
            MessageBox.Show("修改成功!");
            Flush();
        }