public Engine()
 {
     ApplicationSettings = new ApplicationSettings();
     Transport = new Transport( this, ApplicationSettings );
     TipsAndTricks = new Tips();
     UpdateMotd();
 }
        public StatisticsManager( ILoggedUser LoggedUser, ApplicationSettings ApplicationSettings, Transport transport )
        {
            this.ApplicationSettings = ApplicationSettings;
            this.LoggedUser = LoggedUser;
            this.Transport = transport;

            XDocument doc = Open();

            Statistics = new ObservableCollection<StatisticItem>();
            foreach( XElement usageEvent in doc.Descendants( Tags.Statistic ) )
            {
                Statistics.Add( CreateItemBasedOnStatisticType( usageEvent ) );
            }
            Statistics.CollectionChanged += ( sender, args ) => { if( args.NewItems != null ) StatisticAdded(); };
        }
 public Transport( ILoggedUser LoggedUser, ApplicationSettings ApplicationSettings )
 {
     this.LoggedUser = LoggedUser;
     this.ApplicationSettings = ApplicationSettings;
 }