コード例 #1
0
        public ActionResult ConfigureLogging()
        {
            var nlog = new BONlog();
            LoggingConfigurationViewModel model = Mapper.Map<BONlog, LoggingConfigurationViewModel>(nlog);
            model.LogLevelList = new SelectList(_loggingService.GetLogLevels(), SelectLists.DataTextField, SelectLists.DataTextField, SelectLists.UnitializedSelectValue);
            model.Targets = new SelectList(_loggingService.GetTargets(), SelectLists.DataTextField, SelectLists.DataTextField, SelectLists.UnitializedSelectValue);
            ViewBag.EnableDisableControl = "EnableDisableControl();";

            return View(model);
        }
コード例 #2
0
 public BONlogComparer(BONlog.Columns column, BONlog.SortDirections direction)
 {
     _column = column;
     _direction = direction;
 }