public bool CheckAll(bool silent = false) { if (quantity.MesuredData.data.Count != quantity.IndependentData.data.Count) { if (!silent) { UIAPI.Instance.ShowModel(new SimpleModel() { ShowCancel = false, Message = "自变量数据组数与因变量不相等" }); } return(false); } if (StaticMethods.CheckIfExistNullOrEmpty(quantity.MesuredData.data) && StaticMethods.CheckIfExistNullOrEmpty(quantity.IndependentData.data)) { if (!silent) { UIAPI.Instance.ShowModel(new SimpleModel() { ShowCancel = false, Message = "数据填写未完成" }); } return(false); } return(true); }
public bool CheckAll(bool silent = false) { //检查数据组数是否正确 if (quantity.IndependentData.data.Count != quantity.MesuredData.data.Count) { if (!silent) { UIAPI.Instance.ShowModel(new SimpleModel() { ShowCancel = false, Message = "你的数据组数不正确" }); } return(false); } if (StaticMethods.CheckIfExistNullOrEmpty(quantity.MesuredData.data) && StaticMethods.CheckIfExistNullOrEmpty(quantity.IndependentData.data)) { if (!silent) { UIAPI.Instance.ShowModel(new SimpleModel() { ShowCancel = false, Message = "数据填写未完成" }); } return(false); } if (string.IsNullOrEmpty(quantity.selfSymbol)) { if (!silent) { UIAPI.Instance.ShowModel(new SimpleModel() { ShowCancel = false, Message = "请输入自变量单位" }); } return(false); } return(true); }