Exemplo n.º 1
0
        //void ILogisticRegressionServiceAgent.GetColumns(string DataSourceName, string TableName, Action<List<EwavColumn>, Exception> completed)
        //{
        //    throw new NotImplementedException();
        //}

        //void ILogisticRegressionServiceAgent.GenerateTable(string DataSourceName, string TableName, List<string> columnNames, string customFilter, Action<List<ListOfStringClass>, Exception> completed)
        //{
        //    throw new NotImplementedException();
        //}



        void ILogisticRegressionServiceAgent.GetRegressionResults(GadgetParameters gadgetOptions, List <string> columnNames, string customFilter, List <DictionaryDTO> inputDtoList, Action <LogRegressionResults, Exception> completed)
        {
            _rresultsCompleted = completed;
            LogisticRegressionDomainContext        logrCtx           = new LogisticRegressionDomainContext();
            InvokeOperation <LogRegressionResults> logrCtxRegResults = logrCtx.GetRegressionResult(gadgetOptions, columnNames, inputDtoList, ApplicationViewModel.Instance.EwavDatafilters, ApplicationViewModel.Instance.EwavDefinedVariables, ApplicationViewModel.Instance.AdvancedDataFilterString, customFilter);

            logrCtxRegResults.Completed += new EventHandler(logrCtxRegResults_Completed);
        }
Exemplo n.º 2
0
        // void GetRegressionResults(string DatasourceName, string TableName, GadgetParameters gadgetOptions, List<MyString> columnNames, string customFilter,   List<DictionaryDTO> inputDtoList, Action<RegressionResults, Exception> completed)
        //{

        //}
        //public void GetColumns(string DataSourceName, string TableName, Action<List<EwavColumn>, Exception> completed)
        //{
        //    _completed = completed;
        //    LogisticRegressionDomainContext logrCtx = new LogisticRegressionDomainContext();
        //    InvokeOperation<List<EwavColumn>> logrCtxColumnResults = logrCtx.GetColumns(DataSourceName, TableName);
        //    logrCtxColumnResults.Completed += new EventHandler(logrCtxColumnResults_Completed);
        //}

        public void GenerateTable(string DataSourceName, string TableName, List <string> columnNames, string customFilter, Action <List <ListOfStringClass>, Exception> completed)
        {
            _logrCompleted = completed;
            logrCtx        = new LogisticRegressionDomainContext();
            InvokeOperation <List <ListOfStringClass> > logrResults = logrCtx.GenerateTable(DataSourceName, TableName, columnNames, customFilter);

            logrResults.Completed += new EventHandler(logrResults_Completed);
        }