public override void ViewDidLoad() { base.ViewDidLoad(); this.RegisterInputOutputManagers(); this.ConfigureContainer(); this.FormRegister = this.Container.Resolve <FormRegister>(); UIView formsView = new UIView(); this.DrawMainScreen(formsView); var managers = new ManagersCollection { InputManagerCollection = this.InputManager, OutputManagerCollection = this.OutputManager }; this.MyFormHandler = new MyFormHandler(this.Container.Resolve <IMediator>(), this.FormRegister, managers); var backButton = new UIBarButtonItem("Back", UIBarButtonItemStyle.Plain, (sender, args) => { if (this.AppLayouts.Count > 1) { this.AppLayouts.RemoveAt(this.AppLayouts.Count - 1); var layout = this.AppLayouts[this.AppLayouts.Count - 1]; formsView.RemoveAllViews(); formsView.AddSubview(layout.View); if (layout.Constraints != null) { formsView.AddConstraints(layout.Constraints.ToArray()); } } }); this.NavBar.LeftBarButtonItem = backButton; }
public override void ViewDidLoad() { base.ViewDidLoad(); this.View.BackgroundColor = UIColor.FromRGBA(.9f, .9f, .9f, .9f); this.ScrollView = new UIScrollView(); this.View = this.ScrollView; this.UiMetadataWebApi = new UiMetadataWebApi { FormMetadataUrl = "http://grants-management-system.azurewebsites.net/api/form/metadata", MetadataUrl = "http://grants-management-system.azurewebsites.net/api/form/metadata", RunFormUrl = "http://grants-management-system.azurewebsites.net/api/form/run" }; this.RegisterManagers(); this.Wrapper = new CustomFormWrapper(this, this.NavController); var managers = new ManagersCollection { InputManagerCollection = this.InputManager, OutputManagerCollection = this.OutputManager, EventHandlerManagerCollection = this.EventManager }; this.MyFormHandler = new MyFormHandler(this.Wrapper, this.UiMetadataWebApi, managers, this.AllForms); this.GetAllFormsMetadata(); //introButton.TouchUpInside += (sender, e) => //{ // SidebarController.ChangeContentView(new IntroController()); //}; }
public MyFormHandler(IMediator mediator, FormRegister formRegister, ManagersCollection managersCollection) { this.Mediator = mediator; this.ManagersCollection = managersCollection ?? new ManagersCollection(); this.FormRegister = formRegister; }
public MyFormHandler( IMediator mediator, FormRegister formRegister, ManagersCollection managersCollection) { this.Mediator = mediator; this.FormRegister = formRegister; this.UserDefaults = NSUserDefaults.StandardUserDefaults; this.ManagersCollection = managersCollection ?? new ManagersCollection(); }
public MyFormHandler(UiMetadataWebApi uiMetadataWebApi, ManagersCollection managersCollection, IFormWrapper formWrapper, Dictionary <string, FormMetadata> allForms = null) { this.ManagersCollection = managersCollection ?? new ManagersCollection(); this.AllFormsMetadata = allForms; this.UiMetadataWebApi = uiMetadataWebApi; this.AppPreference = new AppSharedPreference(Application.Context); this.FormWrapper = formWrapper; }
public MyFormHandler( IFormWrapper formWrapper, UiMetadataWebApi uiMetadataWebApi, ManagersCollection managersCollection, Dictionary <string, FormMetadata> allForms) { this.AllFormsMetadata = allForms; this.UiMetadataWebApi = uiMetadataWebApi; this.FormWrapper = formWrapper; this.UserDefaults = NSUserDefaults.StandardUserDefaults; this.ManagersCollection = managersCollection ?? new ManagersCollection(); }