private bool ValidateDataForSaving() { try { if (BarCodeGrid.DataSource == null) { ProjectFunctions.SpeakError("No Data To Save"); } SplashScreenManager.ShowForm(this, typeof(WaitForm1), true, true, false); int i = 0; foreach (DataRow dr in dt.Rows) { i++; SplashScreenManager.Default.SetWaitFormDescription("Validating Item " + i.ToString() + " / " + dt.Rows.Count.ToString()); if (ProjectFunctions.CheckAllPossible(dr["SFDARTID"].ToString(), Convert.ToDecimal(dr["SFDARTMRP"]), dr["SFDCOLID"].ToString(), dr["SFDSIZID"].ToString())) { } else { return(false); } } SplashScreenManager.CloseForm(false); return(true); } catch (Exception ex) { ProjectFunctions.SpeakError(ex.Message); return(false); } }
private bool ValidateDataForSaving() { if (BarCodeGrid.DataSource == null) { ProjectFunctions.SpeakError("No Data To Save"); } foreach (DataRow dr in dt.Rows) { if (ProjectFunctions.CheckAllPossible(dr["SFDARTID"].ToString(), Convert.ToDecimal(dr["SFDARTMRP"]), dr["SFDCOLID"].ToString(), dr["SFDSIZID"].ToString())) { } else { return(false); } } return(true); }