예제 #1
0
        public StatisticPage(IMainSwitch context)
        {
            InitializeComponent();
            this.context = context;

            DataContext      = this;
            statisticManager = new StatisticManager(new StatisticComponents()
            {
                BtnNext      = btnNextDay,
                BtnPrevious  = btnPreviousDay,
                GroupBox     = groupThisDevice,
                TextDownload = labelCurrentDownload,
                TextUpload   = labelCurrentUpload
            });
            statisticManager.Start();
        }
예제 #2
0
        static void Main(string[] args)
        {
            StatisticManager manager = new StatisticManager(args[0], new Uri(@"https://api.twitter.com/2/tweets/sample/stream"));

            manager.Start();
        }