/// <summary> /// Adds a profile form, these are used to initialize all the possible /// variables /// </summary> /// <param name="frm">IProfileForm</param> public void AddProfileForm(IProfileForm frm) { // Load its variables frm.DefineVariables(this); // Hook the update variable event frm.UpdateVariable += new UpdateVariableDelegate(SetValue); // Hoko the save / load events frm.SaveCurrentProfile += new CurrentProfileDelegate(SaveProfile); frm.LoadCurrentProfile += new CurrentProfileDelegate(LoadProfile); // Reset the form to default values frm.OnProfileChange(this); // Add it to the notify list _profileforms.Add(frm); }
public UserPresenter(IProfileForm profileFormView) { this.profileFormView = profileFormView; }