Exemplo n.º 1
0
        public static void LoadCharts(ChartManager Charts)
        {
            string LeftListRaw  = StateStore.GetOrCreate("GraphLeftSeries", string.Empty);
            string RightListRaw = StateStore.GetOrCreate("GraphRightSeries", string.Empty);

            AddSeries(LeftListRaw, Charts.Left);
            AddSeries(RightListRaw, Charts.Right);
        }
Exemplo n.º 2
0
        public static void SaveCharts(ChartManager Charts)
        {
            string LeftListRaw  = GetSeries(Charts.Left);
            string RightListRaw = GetSeries(Charts.Right);

            StateStore.Set("GraphLeftSeries", LeftListRaw);
            StateStore.Set("GraphRightSeries", RightListRaw);
            StateStore.Save();
        }
Exemplo n.º 3
0
 public MainWindow()
 {
     UIHelper.Init();
     InitializeComponent();
     InitWindow();
     this.EmergencyStopBtn.NotifyDefault(false);
     this.UIUpdate.Enabled = true;
     UIHelper.SetMode(this.StatusImgNetwork, Resources.Network, 2);
     UIHelper.SetMode(this.StatusImgPower, Resources.Power, 3);
     UIHelper.SetMode(this.StatusImgSystem, Resources.CPU, 3);
     this.Charts = new ChartManager(this.ChartLeft, this.ChartRight, null);
     UIHelper.LoadCharts(this.Charts);
 }