Inheritance: CK.WPF.ViewModel.VMBase
Exemple #1
0
 /// <summary>
 /// Instanciates a VMLogConfig, without populating it
 /// you can populate it by calling its Initialize() method        
 /// </summary>
 /// <param name="ctx"></param>
 public VMLogConfig( VMIContextViewModel ctx, ILogService logService )
     : base(ctx, null)
 {
     _vmiContext = ctx;
     _services = new ObservableCollection<VMLogServiceConfig>();
     _servicesEx = new CKReadOnlyCollectionTypeConverter<ILogServiceConfig, VMLogServiceConfig>( _services, ( c ) => { return (ILogServiceConfig)c; } );
     _logService = logService;
     LogEntriesContainer = new VMLogOutputContainer();
 }
        public VMOutputLogEntry( VMLogOutputContainer holder, LogEventArgs e, string message, int index )
        {
            _holder = holder;
            _logEventArgs = e;
            _isCreating = e.IsCreating;
            _message = message;
            _index = index;

            ILogInterceptionEntry logEntry = _logEventArgs as ILogInterceptionEntry;
            if( logEntry != null ) _category = logEntry.Member.DeclaringType.Name;
            else _category = "Other";
        }
 public VMLogOutputCategory( VMLogOutputContainer holder, string name )
 {
     _holder = holder;
     _name = name;
     _isVisible = true;
 }