예제 #1
0
 public ColorPicker(PaintingColor color)
 {
     InitializeComponent();
     SelectedPaintingColor = color;
     _colorPicker.SelectedColor = SelectedPaintingColor.GetNativeColorObject();
 }
예제 #2
0
 private void SaveColor(object sender, RoutedEventArgs e)
 {
     SelectedPaintingColor = PaintingColor.CreateFromHex(_colorPicker.SelectedColorText);
     DialogResult = true;
 }
예제 #3
0
 public Fill(int actionToChange, PaintingColor newColor, UIElement sender)
 {
     _newColor = newColor;
     _sender = sender as UIElement;
     _actionToChange = actionToChange;
 }