private void checkDependencies(FormView fv, List <WACParameter> parms, WACDataProvider dp, MasterDetailDataObject ds) { ListSource = ds; DataProvider = dp; try { if (fv == null) { throw new Exception("Null FormView in FormViewModel"); } if (ListSource == null) { throw new Exception("Null ListSource in FormViewModel: " + fv.ID); } if (parms == null) { throw new Exception("Null Key list in FormViewModel: " + fv.ID); } if (DataProvider == null) { throw new Exception("Null DataProvider in FormViewModel: " + fv.ID); } } catch (Exception ex) { WACAlert.Show(ex.Message, 0); } }
public override void ConnectControlSpecific(Control _control, ConnectorFactory _factory) { WACViewModel vm = ViewModel; WACDataProvider dp = vm.DataProvider; //MasterDetailDataObject md = vm.ListSource; }