Ejemplo n.º 1
0
        public MainPageViewModel(ILoggingSystem <MainPageViewModel> logger, IEventAggregator eventAggregator)
        {
            OpenTestCommand = new RelayCommand(o => eventAggregator.Invoke(new TestEvent()
            {
                Message = $"Input: {Message}"
            }));

            OpenNewPageCommand = new RelayCommand(o => eventAggregator.Invoke(new OpenNewPageEvent()
            {
                ViewModelType = typeof(NewPageViewModel)
            }));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Logger"/> class.
 /// </summary>
 /// <param name="moduleName">Name of the module.</param>
 /// <param name="loggingSystems">The logging systems.</param>
 public Logger(string moduleName, ILoggingSystem loggingSystem)
     : this(loggingSystem)
 {
     this.ModuleName = moduleName;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BMCLogger"/> class.
 /// </summary>
 /// <param name="moduleName">Name of the module.</param>
 /// <param name="loggingSystems">The logging systems.</param>
 public BMCLogger(string moduleName, ILoggingSystem loggingSystem)
     : base(moduleName, loggingSystem) { }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Logger"/> class.
 /// </summary>
 /// <param name="loggingSystem">The logging system.</param>
 public Logger(ILoggingSystem loggingSystem)
     : this()
 {
     this.LoggingSystems.Add(loggingSystem);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Logger"/> class.
 /// </summary>
 /// <param name="moduleName">Name of the module.</param>
 /// <param name="loggingSystems">The logging systems.</param>
 public BMCCommonLogger(string moduleName, ILoggingSystem loggingSystem)
     : this(loggingSystem)
 {
     this.ModuleName = moduleName;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BMCLogger"/> class.
 /// </summary>
 /// <param name="loggingSystem">The logging system.</param>
 public BMCLogger(ILoggingSystem loggingSystem)
     : base(loggingSystem) { }
Ejemplo n.º 7
0
 public static void AddLoggingSystem(ILoggingSystem loggingSystem)
 {
     SharedData.ActiveLogger.LoggingSystems.Add(loggingSystem);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Logger"/> class.
 /// </summary>
 /// <param name="loggingSystem">The logging system.</param>
 public BMCCommonLogger(ILoggingSystem loggingSystem)
     : this()
 {
     this.LoggingSystems.Add(loggingSystem);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BMCLogger"/> class.
 /// </summary>
 /// <param name="moduleName">Name of the module.</param>
 /// <param name="loggingSystems">The logging systems.</param>
 public BMCLogger(string moduleName, ILoggingSystem loggingSystem)
     : base(moduleName, loggingSystem)
 {
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BMCLogger"/> class.
 /// </summary>
 /// <param name="loggingSystem">The logging system.</param>
 public BMCLogger(ILoggingSystem loggingSystem)
     : base(loggingSystem)
 {
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Logger"/> class.
 /// </summary>
 /// <param name="loggingSystem">The logging system.</param>
 public BMCCommonLogger(ILoggingSystem loggingSystem)
     : this()
 {
     this.LoggingSystems.Add(loggingSystem);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Logger"/> class.
 /// </summary>
 /// <param name="loggingSystem">The logging system.</param>
 public Logger(ILoggingSystem loggingSystem)
     : this()
 {
     this.LoggingSystems.Add(loggingSystem);
 }
Ejemplo n.º 13
0
 public static void AddLoggingSystem(ILoggingSystem loggingSystem)
 {
     SharedData.ActiveLogger.LoggingSystems.Add(loggingSystem);
 }