コード例 #1
0
        public Visual(PersonaEditorLib.FileStructure.SPR.SPRKeyList.SPRKey Key)
        {
            this.Key = new Key(Key);
            this.Key.PropertyChanged += Key_PropertyChanged;

            GD.Children.Add(Boarder);
            GD.Children.Add(Brush);
            Boarder.Geometry                 = new RectangleGeometry(new Rect(new Point(Key.X1, Key.Y1), new Point(Key.X2, Key.Y2)));
            Brush.Geometry                   = Boarder.Geometry;
            Boarder.Pen                      = new Pen(new SolidColorBrush(Current.Default.LineColor), 0.5);
            Boarder.Pen.DashStyle            = DashStyles.Dash;
            Current.Default.PropertyChanged += Default_PropertyChanged;
        }
コード例 #2
0
 public Key(PersonaEditorLib.FileStructure.SPR.SPRKeyList.SPRKey key)
 {
     KeyOut = key;
 }