private void initializeFriendsBirthdayForm() { FriendsBirthdayForm friendsBirthdayForm = new FriendsBirthdayForm(r_FacebookManager, this); this.Hide(); friendsBirthdayForm.ShowDialog(); }
public static Form GetForm(FormType i_FormType, Form i_OpenedBy) { Form toReturn = null; int formIndex = (int)i_FormType; switch (formIndex) { case 0: toReturn = new FriendsBirthdayForm(i_OpenedBy); break; case 1: toReturn = new SearchForm(i_OpenedBy); break; case 2: toReturn = new ImageGalleryForm(i_OpenedBy); break; case 3: toReturn = new UploadPostForm(i_OpenedBy); break; case 4: toReturn = new AboutMeForm(i_OpenedBy); break; } if (toReturn == null) { throw new ArgumentException("Invalid FormType given!!!"); } return(toReturn); }
private void initializeFriendsBirthdayForm() { FormType formType = FormType.FriendsBirthday; FriendsBirthdayForm friendsBirthdayForm = ReturnableFormFactory.GetForm(formType, this) as FriendsBirthdayForm; this.Hide(); friendsBirthdayForm.ShowDialog(); }
private void initializeFriendsBirthdayForm() { FormType formType = FormType.FriendsBirthday; FriendsBirthdayForm friendsBirthdayForm = ReturnableFormFactory.GetForm(formType, this) as FriendsBirthdayForm; friendsBirthdayForm.m_DoWhenFormIsClosed += () => { setFormUsageDetails(friendsBirthdayForm); }; this.Hide(); friendsBirthdayForm.ShowDialog(); }