Exemplo 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)
            }));
        }
Exemplo 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;
 }
Exemplo 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) { }
Exemplo 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);
 }
Exemplo 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;
 }
Exemplo 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) { }
Exemplo n.º 7
0
 public static void AddLoggingSystem(ILoggingSystem loggingSystem)
 {
     SharedData.ActiveLogger.LoggingSystems.Add(loggingSystem);
 }
Exemplo 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);
 }
Exemplo 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)
 {
 }
Exemplo 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)
 {
 }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo n.º 13
0
 public static void AddLoggingSystem(ILoggingSystem loggingSystem)
 {
     SharedData.ActiveLogger.LoggingSystems.Add(loggingSystem);
 }