Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/27/10 08:20:56 (14 years ago)
Author:
wtollsch
Message:

#1198 AlgorithmClass/Index.aspx new buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers/AlgorithmClassController.cs

    r4939 r4952  
    1616        public ActionResult Index() {
    1717            //create list of algorithms
    18             OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient();
    19             sc.ClientCredentials.UserName.UserName = "Gerhard";
    20             sc.ClientCredentials.UserName.Password = "Gerhard";
    21             sc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;
     18            //OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient();
     19            //sc.ClientCredentials.UserName.UserName = "Gerhard";
     20            //sc.ClientCredentials.UserName.Password = "Gerhard";
     21            //sc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;
    2222
    23             var agcList = new List<OKBService.AlgorithmClass>();
    24             OKBService.AlgorithmClass[] ac = sc.GetAlgorithmClasses();
    25             foreach (OKBService.AlgorithmClass a in ac) {
    26                 agcList.Add(a);
    27             }//foreach
     23            //var agcList = new List<OKBService.AlgorithmClass>();
     24            //OKBService.AlgorithmClass[] ac = sc.GetAlgorithmClasses();
     25            //foreach (OKBService.AlgorithmClass a in ac) {
     26            //    agcList.Add(a);
     27            //}//foreach
     28
     29            //var viewModel = new AlgorithmClassModel {
     30            //    NumOfClasses = agcList.Count(),
     31            //    AlgorithmClassList = agcList
     32            //};
    2833
    2934            var viewModel = new AlgorithmClassModel {
    30                 NumOfClasses = agcList.Count(),
    31                 AlgorithmClassList = agcList
     35                NumOfClasses = 0,
     36                AlgorithmClassList = null
    3237            };
    3338
     
    5156        }//index
    5257
     58        //
     59        // GET: /AlgotithmClass/5
     60        public string DelAlgorithmClass(int id){
     61            string message = "DeleteAlgorithmClass, id = " + Server.HtmlEncode(Request.QueryString["id"]);
     62            return Server.HtmlEncode(message);
     63        }
     64
    5365    }
    5466}
Note: See TracChangeset for help on using the changeset viewer.