Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var xf = new OutStorage();

            if (DialogResult.OK == xf.ShowDialog())
            {
                InitData();
            }
        }
Exemplo n.º 2
0
 private void 编辑ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new OutStorage
         {
             _detailId = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Id")),
             _orderNum = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "OrderNum").ToString(),
         };
         if (DialogResult.OK == frm.ShowDialog())
         {
             InitData();
         }
         else
         {
             XtraMessageBox.Show("编辑失败!", "操作提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show("编辑出错!" + ex.Message);
     }
 }