public MainWindow() { UpdateWindowPosition(this); InitializeComponent(); _mainWindowVm = (MainWindowVm)DataContext; _mainWindowVm.LogGrid = LogGrid; BuildColumns(Config.DefaultColumnMapping); _mainWindowVm.ColumnMappingChanged += MainWindowVmColumnMappingChanged; _mainWindowVm.Monitor.UpdateLogEvent += Monitor_OnUpdateLog; _mainWindowVm.Initialize(); //new LoggerTesting().RunAll(); }
public SelectFileWindowVm(MainWindowVm mainWindowVm) : this() { _mainWindowVm = mainWindowVm; mainWindowVm.SavedFiles.Except(_logFiles).ForEach(_logFiles.Add); }