private void Image_MouseUp(object sender, MouseButtonEventArgs e) { Point mouse = e.GetPosition(this); findcolor = Util.getColorOfPixel(this.sipScreenImage.Source as BitmapImage, (int)mouse.X, (int)mouse.Y); control.colorPanel.Background = Util.setColor(findcolor); }
public sipControl(Sip_window papawindow, Color color) { window = papawindow; XmlNode langNode = Settings.loadSettings(); InitializeComponent(); this.sipInfoTexBlock.Text = langNode.SelectSingleNode("field_sip_textblock").InnerText; this.EnterButton.Content = langNode.SelectSingleNode("field_enter_button").InnerText; this.CancelButton.Content = langNode.SelectSingleNode("field_cancel_button").InnerText; this.colorPanel.Background = Util.setColor(color); }
public static void UpdateColorPanels() { InputPanel.Background = Util.setColor(ContentPanelMaster.inputColor.ToColor()); ResultPanel.Background = Util.setColor(ContentPanelMaster.ResultColor.ToColor()); }
private void EnterButton_MouseLeave(object sender, MouseEventArgs e) { (sender as Button).Foreground = Util.setColor(80, 180, 245); }
private void EnterButton_MouseEnter(object sender, MouseEventArgs e) { (sender as Button).Foreground = Util.setColor(255, 255, 255); }
private void Button_MouseDown(object sender, MouseButtonEventArgs e) { FindLabel.Foreground = Util.setColor(80, 180, 245); FindImage.Source = Util.ImageFromBuffer(Properties.Resources.search_line_blue); }
private void Button_MouseEnter(object sender, MouseEventArgs e) { FindLabel.Foreground = Util.setColor(255, 255, 255); FindImage.Source = Util.ImageFromBuffer(Properties.Resources.search_line); }
private void BlueSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { BlueTextBox.Text = ((int)BlueSlider.Value).ToString(); ContentPanelMaster.UpdateColor(); MainWindow.InputPanel.Background = Util.setColor(ContentPanelMaster.inputColor.ToColor()); }
public void setColor(Color _color) { findcolor = _color; this.control.colorPanel.Background = Util.setColor(findcolor); }