public bool IsCommodityChecked(string commodityName) { //total if (commodityName == null) { if (TotalCommotidyGrid.IsNoEnabledCheckbox()) { return(false); } else { return(true); } } else //specified commodity { if (CommodityGrid.IsRowChecked(2, commodityName, false)) { return(true); } else { return(false); } } }
public bool IsNoSingleCommodity() { TotalCommotidyGrid.CheckRowCheckbox(2, "[email protected]", false); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.MediumPause(); return(CommodityGrid.IsNoRowOnGrid()); }
public void SelectCommodity(string commodityNames = null) { //total if (commodityNames == null) { TotalCommotidyGrid.CheckRowCheckbox(2, "[email protected]", false); } else //specified commodity { TotalCommotidyGrid.CheckRowCheckbox(2, "[email protected]", false); JazzMessageBox.LoadingMask.WaitSubMaskLoading(); CommodityGrid.CheckRowCheckbox(2, commodityNames, false); //JazzMessageBox.LoadingMask.WaitLoading(); } }
public void DeSelectCommodity(string[] commodityNames) { //total if (commodityNames == null || commodityNames.Length <= 0) { TotalCommotidyGrid.UncheckRowCheckbox(2, "[email protected]", false); } else //specified commodity { TotalCommotidyGrid.UncheckRowCheckbox(2, "[email protected]", false); //JazzMessageBox.LoadingMask.WaitSubMaskLoading(); TimeManager.ShortPause(); foreach (var commodity in commodityNames) { CommodityGrid.UncheckRowCheckbox(2, commodity, false); //JazzMessageBox.LoadingMask.WaitLoading(); } } }