private void BrushselectorFor_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.Foreground = Sbrush; if (Sbrush is ImageBrush) { cont.ForegroundKey = brushSelector.LastSelectedImageKey; } }
private void Brushselector_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.Foreground = Sbrush; if (ChangedBrush != null) { ChangedBrush(brushselector.LastSelectedImageKey); } }
private void BrushSelector_Hover_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.Hover = Sbrush; if (Sbrush is ImageBrush) { cont.keyH = brushSelector.LastSelectedImageKey; cont.stretchH = ((ImageBrush)Sbrush).Stretch; } }
private void BrushSelector_Click_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.ClickBrush = Sbrush; if (Sbrush is ImageBrush) { cont.keyC = brushSelector.LastSelectedImageKey; cont.stretchC = ((ImageBrush)Sbrush).Stretch; } }
private void BrushSelector_Normal_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.DefaultBrush = Sbrush; cont.Background = Sbrush; if (Sbrush is ImageBrush) { cont.keyN = brushSelector.LastSelectedImageKey; cont.stretchN = ((ImageBrush)Sbrush).Stretch; } }
private void BrushSelector_Unchecked_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.UncheckedBrush = Sbrush; if (Sbrush is ImageBrush) { cont.keyN = brushSelector.LastSelectedImageKey; cont.stretchN = ((ImageBrush)Sbrush).Stretch; } cont.SetChecked(cont.IsChecked); }
private void Brushselector_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.Background = Sbrush; if (Sbrush is ImageBrush) { if (cont.Tag == null) { List <object> list = new List <object>(2); list.Add(null); list.Add(null); cont.Tag = list; ((List <object>)cont.Tag)[1] = new DesignSave(new ImageRepresentation(brushselector.LastSelectedImageKey, ((ImageBrush)cont.Background).Stretch)).Serialize(); } else { ((List <object>)cont.Tag)[1] = new DesignSave(new ImageRepresentation(brushselector.LastSelectedImageKey, ((ImageBrush)cont.Background).Stretch)).Serialize(); } } }
private void Brushselector_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.Fill = Sbrush; }
private void Brushselector_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush) { cont.Background = Sbrush; }