void UserControl_Loaded(object sender, RoutedEventArgs e) { Model = new PlayerManager(); Model.Create(); DataContext = Model.Player; Bindings.SetFields(this); }
public PlayerEditor() { InitializeComponent(); Model = new PlayerManager(); Model.Create(); _Editor = new ObjectEditor(); _Editor.Initialize(Model.Player, Editor); }