/// <summary> /// Executes the command. /// /// NOTICE that the method is called DoExecute(). See TypeSafeCommand for the reason of that. /// <see cref="TypeSafeCommand.Execute"/> /// </summary> /// <returns>True if everything worked fine</returns> public bool DoExecute() { // create and store the contact CreatedContact = BindableFactory.CreateObjectRecursive <Contact>(); CreatedContact.FirstName.Set("<new>"); // call redo which really manipulates the model return(Redo()); }
public AddressBookModule(Gui gui, MonoBehaviour scene) { Gui = gui; Scene = scene; // create the model by analyzing all members if they have the [CreateBindable] attribute set. Model = BindableFactory.CreateObjectRecursive <Model>(); // initialize the language data holder L10N = new LocalizedLanguageHolder(); }