/// <summary> /// Gets the regression table results from Domain service /// </summary> /// <param name="DatasourceName"></param> /// <param name="TableName"></param> /// <param name="gadgetOptions"></param> /// <param name="columnNames"></param> /// <param name="inputDtoList"></param> /// <param name="completed"></param> //public void GetRegressionResults(string DatasourceName, string TableName, GadgetParameters gadgetOptions, List<string> columnNames, List<DictionaryDTO> inputDtoList, Action<LinRegressionResults, Exception> completed) //{ // _rresultsCompleted = completed; // ScatterDomainContext sctrCtx = new ScatterDomainContext(); // InvokeOperation<LinRegressionResults> sctrCtxRegResults = sctrCtx.GetRegressionResult(DatasourceName, TableName, gadgetOptions, columnNames, inputDtoList); // sctrCtxRegResults.Completed += new EventHandler(sctrCtxRegResults_Completed); //} #endregion public void GenerateTable(GadgetParameters gadgetOptions, IEnumerable <EwavDataFilterCondition> ewavDataFilters, string filterString, Action <ScatterDataDTO, Exception> completed) { _tableCompleted = completed; ScatterDomainContext sctrCtx = new ScatterDomainContext(); InvokeOperation <ScatterDataDTO> sctrCtxtableResults = sctrCtx.GenerateTable(gadgetOptions, ewavDataFilters, ApplicationViewModel.Instance.EwavDefinedVariables, ApplicationViewModel.Instance.AdvancedDataFilterString); sctrCtxtableResults.Completed += new EventHandler(sctrCtxtableResults_Completed); }
/// <summary> /// Gets columns from Domain Service /// </summary> /// <param name="DataSourceName"></param> /// <param name="TableName"></param> /// <param name="completed"></param> public void GetColumns(string DataSourceName, string TableName, Action <List <EwavColumn>, Exception> completed) { _completed = completed; ScatterDomainContext sctrCtx = new ScatterDomainContext(); //LinearRegressionDomainContext linrCtx = new LinearRegressionDomainContext(); InvokeOperation <List <EwavColumn> > sctrCtxColumnResults = sctrCtx.GetColumns(DataSourceName, TableName); sctrCtxColumnResults.Completed += new EventHandler(sctrCtxColumnResults_Completed); }