Exemplo n.º 1
0
        void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            Model = new PlayerManager();
            Model.Create();

            DataContext = Model.Player;

            Bindings.SetFields(this);
        }
Exemplo n.º 2
0
        public PlayerEditor()
        {
            InitializeComponent();

            Model = new PlayerManager();
            Model.Create();

            _Editor = new ObjectEditor();
            _Editor.Initialize(Model.Player, Editor);
        }