예제 #1
0
        private void viewData()
        {
            btnViewData.Enabled = false;
            if (Convert.ToString(gridViewData.GetFocusedRowCellValue(colCarId)) != "")
            {
                frmCarInfo oForm = new frmCarInfo();
                oForm.Icon  = fMain.Icon;
                oForm.fMain = fMain;
                oForm.CarId = Convert.ToString(gridViewData.GetFocusedRowCellValue(colCarId));

                oForm.RefreshAll();
                oForm.ShowDialog(this);
                if (oForm.isSaved)
                {
                    //loadData(true);
                    //loadData(false);
                    loadData();
                    loadCmb();
                }
                clsHelper.setGridMasterSelected(gridViewData, colCarId.FieldName, oForm.CarId);
                oForm = null;
                if (clsGlobal.isClose == true)
                {
                    loadData();
                    loadCmb();
                }
            }


            btnViewData.Enabled = true;
        }
예제 #2
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            btnViewData.Enabled = false;


            frmCarInfo oForm = new frmCarInfo();

            oForm.Icon  = fMain.Icon;
            oForm.fMain = fMain;

            oForm.RefreshAll();
            oForm.ShowDialog(this);
            if (oForm.isSaved)
            {
                loadData();
            }
            oForm = null;
        }