Exemplo n.º 1
0
        private void OK_Clicked(object sender, EventArgs e)
        {
            if (this.longUzorData != null)
            {
                this.longUzorData.FrontColor = PixelColor.FromNativeColor(this.frontColor);
                this.longUzorData.BackColor  = PixelColor.FromNativeColor(this.backColor);

                if (saveAllColorCheckbox.IsChecked)
                {
                    foreach (UzorData d in this.longUzorData.UzorElements)
                    {
                        d.Layers[0].FrontColor = PixelColor.FromNativeColor(this.frontColor);
                        d.Layers[0].BackColor  = PixelColor.FromNativeColor(this.backColor);
                    }

                    this.longUzorData.SidePattern.Layers[0].FrontColor = PixelColor.FromNativeColor(this.frontColor);
                    this.longUzorData.SidePattern.Layers[0].BackColor  = PixelColor.FromNativeColor(this.backColor);
                }
                else
                {
                    // edit only backGround color for LongUzorData
                    this.longUzorData.SidePattern.Layers[0].BackColor = PixelColor.FromNativeColor(this.backColor);
                }
            }
            else if (this.data != null)
            {
                this.data.Layers[0].FrontColor = PixelColor.FromNativeColor(this.frontColor);
                this.data.Layers[0].BackColor  = PixelColor.FromNativeColor(this.backColor);
            }
            BackgroundTapped?.Invoke(this, null);
        }
Exemplo n.º 2
0
 private void Cancel_Clicked(object sender, EventArgs e)
 {
     BackgroundTapped?.Invoke(this, null);
 }
Exemplo n.º 3
0
 private void background_Tapped(object sender, EventArgs e)
 {
     viewFrame.FadeTo(0);
     background.FadeTo(0);
     BackgroundTapped?.Invoke(this, null);
 }