Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Session.SessionInstance.NewData += Session_NewData;
            Impostazioni set = new Impostazioni();
            set.ShowInTaskbar = false;
            set.ShowDialog(this);

            off = new Stopwatch();
            chartColor = Properties.Settings.Default.ChartColor;
            inRangeColor=Properties.Settings.Default.InColor;
            outRangeColor=Properties.Settings.Default.OutColor;
            limitColor = Properties.Settings.Default.LimitColor;
            offset=Properties.Settings.Default.Offset;
            MaxOffTime = Properties.Settings.Default.OffTime;
            Session.SessionInstance.Interval = Properties.Settings.Default.Interval;

            Session.SessionInstance.Connect();
        }
Пример #2
0
 private void settingsBtn_Click(object sender, EventArgs e)
 {
     Session.SessionInstance.Stop();
     Impostazioni set = new Impostazioni();
     set.ShowInTaskbar = false;
     set.Owner = this;
     set.Show();
     Reset();
 }