Files
ProgaOra/20241106/WpfApp1/WpfApp1/MainWindow.xaml.cs
szabomarton ce936f62c7 asd
2024-11-13 11:43:37 +01:00

52 lines
1.3 KiB
C#

using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfApp1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
public static int redValue = 0;
public static int greenValue = 0;
public static int blueValue = 0;
private void red_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
redValue = Convert.ToInt16(red.Value);
ColorChange();
}
private void green_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
greenValue = Convert.ToInt16(green.Value);
ColorChange();
}
private void blue_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
blueValue = Convert.ToInt16(blue.Value);
ColorChange();
}
public static void ColorChange()
{
}
}
}