コード例 #1
0
        private void Pojemnosc_Suwak_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            Properties.Settings.Default.Pojemnosc = Pojemnosc_Suwak.Value;
            OxyPlotModel_Uklad_Calkujacy oxyPlotModel = new OxyPlotModel_Uklad_Calkujacy(Properties.Settings.Default.Rezystancja, Properties.Settings.Default.Pojemnosc);

            this.DataContext = oxyPlotModel;
            double chuj = Properties.Settings.Default.Rezystancja * Properties.Settings.Default.Pojemnosc;
        }
コード例 #2
0
 private void Bu_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     if (Button.Toggled1 == true)
     {
         Properties.Settings.Default.Wybor = 1;
         OxyPlotModel_Uklad_Calkujacy oxyPlotModel = new OxyPlotModel_Uklad_Calkujacy(Properties.Settings.Default.Rezystancja, Properties.Settings.Default.Pojemnosc);
         this.DataContext = oxyPlotModel;
     }
     else
     {
         Properties.Settings.Default.Wybor = 2;
         OxyPlotModel_Uklad_Calkujacy oxyPlotModel = new OxyPlotModel_Uklad_Calkujacy(Properties.Settings.Default.Rezystancja, Properties.Settings.Default.Pojemnosc);
         this.DataContext = oxyPlotModel;
     }
 }