Example #1
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            IntoStorage xf = new IntoStorage();

            xf.Id = 0;
            if (DialogResult.OK == xf.ShowDialog())
            {
                IntoStorageManage_Load(null, null);
            }
        }
Example #2
0
 private void 编辑ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         IntoStorage f = new IntoStorage();
         f.Id = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "ID"));
         if (DialogResult.OK == f.ShowDialog())
         {
             IntoStorageManage_Load(null, null);
         }
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show("编辑出错!" + ex.Message);
     }
 }