예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            IntoStorage xf = new IntoStorage();

            if (DialogResult.OK == xf.ShowDialog())
            {
                IntoStorageManage_Load(null, null);
            }
        }
예제 #2
0
 private void 编辑ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new IntoStorage
         {
             detailId = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Id")),
         };
         if (DialogResult.OK == frm.ShowDialog())
         {
             InitData();
         }
         else
         {
             XtraMessageBox.Show("编辑失败!", "操作提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show("编辑出错!" + ex.Message);
     }
 }