Example #1
0
        private void EhShowCustomBrushDialog(object sender, RoutedEventArgs e)
        {
            var localBrush = InternalSelectedBrush.Clone(); // under no circumstances change the selected brush, since it may come from an unknown source
            var ctrl       = new BrushControllerAdvanced
            {
                RestrictBrushColorToPlotColorsOnly = ShowPlotColorsOnly
            };

            ctrl.InitializeDocument(localBrush);
            if (Current.Gui.ShowDialog(ctrl, "Edit brush properties", false))
            {
                InternalSelectedBrush = (BrushX)ctrl.ModelObject;
            }
        }
Example #2
0
		private void EhShowCustomBrushDialog(object sender, RoutedEventArgs e)
		{
			var localBrush = this.InternalSelectedBrush.Clone(); // under no circumstances change the selected brush, since it may come from an unknown source
			var ctrl = new BrushControllerAdvanced();
			ctrl.RestrictBrushColorToPlotColorsOnly = ShowPlotColorsOnly;
			ctrl.InitializeDocument(localBrush);
			if (Current.Gui.ShowDialog(ctrl, "Edit brush properties", false))
				this.InternalSelectedBrush = (BrushX)ctrl.ModelObject;
		}