示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            try
            {
                frmEditBackUp frm = new frmEditBackUp(0);
                LBShowForm.ShowDialog(frm);

                LoadBackUpConfig();
            }
            catch (Exception ex)
            {
                LB.WinFunction.LBCommonHelper.DealWithErrorMessage(ex);
            }
        }
示例#2
0
        private void GrdMain_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
                {
                    DataRowView drvSelect       = this.grdMain.Rows[e.RowIndex].DataBoundItem as DataRowView;
                    long        lBackUpConfigID = drvSelect["BackUpConfigID"] == DBNull.Value?
                                                  0: Convert.ToInt64(drvSelect["BackUpConfigID"]);
                    if (lBackUpConfigID > 0)
                    {
                        frmEditBackUp frm = new frmEditBackUp(lBackUpConfigID);
                        LBShowForm.ShowDialog(frm);

                        LoadBackUpConfig();
                    }
                }
            }
            catch (Exception ex)
            {
                LB.WinFunction.LBCommonHelper.DealWithErrorMessage(ex);
            }
        }