Inheritance: INotifyPropertyChanged
Exemple #1
0
        public Bender()
            : base(GearsetSettings.Instance.BenderConfig)
        {
            Window = new CurveEditorWindow();

            if (Config.Visible)
            {
                Window.Show();
            }

            curveTreeViewModel = new CurveTreeViewModel(Window.curveEditorControl);

            Window.DataContext           = Window.curveEditorControl.ControlsViewModel;
            Window.curveTree.DataContext = curveTreeViewModel;
            Window.Top               = Config.Top;
            Window.Left              = Config.Left;
            Window.Width             = Config.Width;
            Window.Height            = Config.Height;
            Window.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(Window_IsVisibleChanged);


            //Curve c1 = new Curve();
            //AddCurve("MyObject.X", c1);
            //c1 = new Curve();
            //AddCurve("MyObject.Y", c1);
            //c1 = new Curve();
            //AddCurve("MyObject.Z", c1);
            //c1 = new Curve();
            //AddCurve("MyObject.Alpha", c1);

            //c1 = new Curve();
            //AddCurve("MyObject2.X", c1);
            //c1 = new Curve();
            //AddCurve("MyObject2.Y", c1);
            //c1 = new Curve();
            //AddCurve("MyObject2.Z", c1);
            //c1 = new Curve();
            //AddCurve("MyObject2.Alpha", c1);

            //c1 = new Curve();
            //AddCurve("Lonely curve", c1);
            //c1 = new Curve();
            //AddCurve("Another curve", c1);

            //RemoveCurveOrGroup("Another curve");
        }
Exemple #2
0
        public Bender()
            : base(GearsetSettings.Instance.BenderConfig)
        {
            Window = new CurveEditorWindow();

            if (Config.Visible)
                Window.Show();

            curveTreeViewModel = new CurveTreeViewModel(Window.curveEditorControl);

            Window.DataContext = Window.curveEditorControl.ControlsViewModel;
            Window.curveTree.DataContext = curveTreeViewModel;
            Window.Top = Config.Top;
            Window.Left = Config.Left;
            Window.Width = Config.Width;
            Window.Height = Config.Height;
            Window.IsVisibleChanged += Window_IsVisibleChanged;

            //Curve c1 = new Curve();
            //AddCurve("MyObject.X", c1);
            //c1 = new Curve();
            //AddCurve("MyObject.Y", c1);
            //c1 = new Curve();
            //AddCurve("MyObject.Z", c1);
            //c1 = new Curve();
            //AddCurve("MyObject.Alpha", c1);

            //c1 = new Curve();
            //AddCurve("MyObject2.X", c1);
            //c1 = new Curve();
            //AddCurve("MyObject2.Y", c1);
            //c1 = new Curve();
            //AddCurve("MyObject2.Z", c1);
            //c1 = new Curve();
            //AddCurve("MyObject2.Alpha", c1);

            //c1 = new Curve();
            //AddCurve("Lonely curve", c1);
            //c1 = new Curve();
            //AddCurve("Another curve", c1);

            //RemoveCurveOrGroup("Another curve");
        }