Example #1
0
        private void but_Add_Click(object sender, EventArgs e)
        {
            Frm_YudingXG yd = new Frm_YudingXG();

            //添加
            Frm_YudingXG.strbianhao = "0";
            yd.ShowDialog();
        }
Example #2
0
 private void but_xiugai_Click(object sender, EventArgs e)
 {
     try
     {
         if (LV_info.SelectedItems.Count == 1)
         {
             Frm_YudingXG yd = new Frm_YudingXG();
             //修改
             Frm_YudingXG.strbianhao = "1";
             yd.RName = LV_info.SelectedItems[0].SubItems[3].Text.Trim();
             yd.ShowDialog();
         }
         else
         {
             MessageBox.Show("请选择要修改信息");
         }
     }
     catch { }
 }