Example #1
0
 public PaintZoneModel(double width, double height)
 {
     this.theme = Theme.Default();
     this.paintZoneData = BitmapFactory.New(width.Round(), height.Round());
     this.tracker = new MouseTracker();
     this.tracker.OnMouseMoove += new MouseTracker.OnMouseMooveHandler(this.HandleMouseMoove);
     this.tracker.OnMouseStill += new MouseTracker.OnMouseStillHandler(this.HandleMouseStill);
     this.stillCounter = 0;
     this.ResetImage();
 }
 public ThemeEditorViewModel(Theme current)
 {
     var colorsSrc = current.ColorsSrc.ThrowIfEmpty();
     this.colorsSrc = new ObservableCollection<ColorEditorViewModel>();
     foreach (Color color in colorsSrc)
     {
         this.colorsSrc.Add(new ColorEditorViewModel(color));
     }
     this.model = new ThemeEditorModel(current);
 }
 public ThemeEditorModel(Theme current)
 {
     this.theme = (current.Clone() as Theme).ThrowIfNull();
 }
 public ThemeEditorWindow(Theme current)
 {
     this.DataContext = new ThemeEditorViewModel(current);
     this.InitializeComponent();
 }