コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public static void UpdateColorPanels()
 {
     InputPanel.Background  = Util.setColor(ContentPanelMaster.inputColor.ToColor());
     ResultPanel.Background = Util.setColor(ContentPanelMaster.ResultColor.ToColor());
 }
コード例 #4
0
 private void EnterButton_MouseLeave(object sender, MouseEventArgs e)
 {
     (sender as Button).Foreground = Util.setColor(80, 180, 245);
 }
コード例 #5
0
 private void EnterButton_MouseEnter(object sender, MouseEventArgs e)
 {
     (sender as Button).Foreground = Util.setColor(255, 255, 255);
 }
コード例 #6
0
 private void Button_MouseDown(object sender, MouseButtonEventArgs e)
 {
     FindLabel.Foreground = Util.setColor(80, 180, 245);
     FindImage.Source     = Util.ImageFromBuffer(Properties.Resources.search_line_blue);
 }
コード例 #7
0
 private void Button_MouseEnter(object sender, MouseEventArgs e)
 {
     FindLabel.Foreground = Util.setColor(255, 255, 255);
     FindImage.Source     = Util.ImageFromBuffer(Properties.Resources.search_line);
 }
コード例 #8
0
 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());
 }
コード例 #9
0
        public void setColor(Color _color)
        {
            findcolor = _color;

            this.control.colorPanel.Background = Util.setColor(findcolor);
        }