private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     MathFuncGroup.AddNewRadioButtonRange
         (new RadioButtonViewModel[]
     {
         new RadioButtonViewModel
         {
             GetContentText = "sh(x)",
             MathFunction   = (double num) => (Pow(E, num) - Pow(E, -num)) / 2d,
             IsFuncChecked  = true
         },
         new RadioButtonViewModel {
             GetContentText = "x^2", MathFunction = (double num) => Pow(num, 2)
         },
         new RadioButtonViewModel {
             GetContentText = "x^3", MathFunction = (double num) => Pow(num, 3)
         },
         new RadioButtonViewModel {
             GetContentText = "e^x", MathFunction = (double num) => Pow(E, num)
         }
     }
         );
     ResultTextBox.Text                 += TitleText;
     MenuColorWidget.DataContext         = this;
     MenuColorWidget.OkButton.Click     += OkButton_Click;
     MenuColorWidget.CancelButton.Click += CancelButton_Click;
 }
예제 #2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     MathFuncGroup.AddNewRadioButtonRange
         (new RadioButtonViewModel[]
     {
         new RadioButtonViewModel
         {
             GetContentText = "sh(x)",
             MathFunction   = (double num) => (Pow(E, num) - Pow(E, -num)) / 2d,
             IsFuncChecked  = true
         },
         new RadioButtonViewModel {
             GetContentText = "x^2", MathFunction = (double num) => Pow(num, 2)
         },
         new RadioButtonViewModel {
             GetContentText = "x^3", MathFunction = (double num) => Pow(num, 3)
         },
         new RadioButtonViewModel {
             GetContentText = "e^x", MathFunction = (double num) => Pow(E, num)
         }
     }
         );
     ResultTextBox.Text += "Лаб. раб. №7 Ст.Гр. 10701219 Колосов А.А\n";
 }