Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            MainRecordDbService = new RecordDbService(); // 初始化

            SetIcon();                                   // 最小化

            _t.Elapsed += ProcessTimer;

            //到达时间的时候执行事件;

            _t.AutoReset = true;

            _t.Enabled = true;

            SeriesCollection = new SeriesCollection
            {
                new RowSeries
                {
                    Title  = "当前运行情况",
                    Values = new ChartValues <long> {
                    }
                }
            };

            Labels = new List <string>();
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecordService"/> class.
 /// </summary>
 public RecordService()
 {
     this.cloudService = new RecordCloudService();
     this.dbService    = new RecordDbService();
 }