public ColorEditor() { this.colorEditorModel = new ColorEditorModel(this.Color); this.ColorSpace = ColorEditorModel.SharedColorSpace; this.colorEditorModel.BeginEditCommand = (ICommand) new DelegateCommand(new DelegateCommand.SimpleEventHandler(this.ColorModel_BeginEdit)); this.colorEditorModel.ContinueEditCommand = (ICommand) new DelegateCommand(new DelegateCommand.SimpleEventHandler(this.ColorModel_ContinueEdit)); this.colorEditorModel.EndEditCommand = (ICommand) new DelegateCommand(new DelegateCommand.SimpleEventHandler(this.ColorModel_EndEdit)); this.colorEditorModel.CancelEditCommand = (ICommand) new DelegateCommand(new DelegateCommand.SimpleEventHandler(this.ColorModel_CancelEdit)); this.Loaded += new RoutedEventHandler(this.OnColorEditorLoaded); this.Unloaded += new RoutedEventHandler(this.OnColorEditorUnloaded); Application.LoadComponent((object)this, new Uri("/Microsoft.Expression.Framework;v" + (object)this.GetType().Assembly.GetName().Version + ";component/valueeditors/coloreditor/coloreditor.xaml", UriKind.Relative)); }
public void SetLastColorModel() { ColorEditorModel.SharedLastColorModel.CopyFrom(this.colorModel); ColorEditorModel.FireAllColorEditorModelChanged("LastColorModel"); }