Ignore:
Timestamp:
Jan 19, 2011, 1:03:46 PM (11 years ago)
Author:
kopal
Message:

small bug fix: gui used the "wrong" model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/View/VisualComponents/CryptoLineView/CryptoLineView.cs

    r2383 r2388  
    6767        public static readonly DependencyProperty StartPointProperty = DependencyProperty.Register("StartPoint", typeof(Point), typeof(CryptoLineView), new FrameworkPropertyMetadata(new Point(0, 0), FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.AffectsMeasure));
    6868        public static readonly DependencyProperty EndPointProperty = DependencyProperty.Register("EndPoint", typeof(Point), typeof(CryptoLineView), new FrameworkPropertyMetadata(new Point(0, 0), FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.AffectsMeasure));
    69         private ConnectionModel connectionModel;
    70         //private ConnectorView source;
    71         //private ConnectorView target;
    72 
     69       
    7370                #endregion
    7471
     
    120117        {
    121118            this.Loaded += new RoutedEventHandler(CryptoLineView_Loaded);
    122             this.connectionModel = connectionModel;
     119            this.Model = connectionModel;
    123120            this.StartPointSource = source;
    124121            this.EndPointSource = target;
     
    127124        void CryptoLineView_Loaded(object sender, RoutedEventArgs e)
    128125        {
    129             Color color = ColorHelper.GetLineColor(connectionModel.ConnectionType);
     126            Color color = ColorHelper.GetLineColor(this.Model.ConnectionType);
    130127            Stroke = new SolidColorBrush(color);
    131128            StrokeThickness = 2;
     
    766763
    767764        internal void Reset()
    768         {
     765        {           
    769766            Color color = ColorHelper.GetColor(Model.ConnectionType);
    770767            Stroke = new SolidColorBrush(color);
Note: See TracChangeset for help on using the changeset viewer.