예제 #1
0
 public EditingCanvasView(MouseStateView state, MouseHoverView hover, MouseSelectedView selected, MouseDragView drag, IMouseHandler h)
     : base()
 {
     StateView     = state;
     HoverView     = hover;
     SelectedView  = selected;
     DragView      = drag;
     handler       = h;
     scroll_amount = 0;
     current_left  = 0;
 }
        private EditingCanvasView createCanvasView()
        {
            var state_view    = new MouseStateView(reader.getDictionary(SettingsReader.MOUSESTATE), converter);
            var hover_view    = new MouseHoverView(info.DrawingObjects.HoverBrush);
            var selected_view = new MouseSelectedView(info.DrawingObjects.SelectedBrush);
            var drag_view     = new MouseDragView();

            selected.SelectedView = selected_view;
            var canvas = new EditingCanvasView(state_view, hover_view, selected_view, drag_view, handler);

            return(canvas);
        }