Ejemplo n.º 1
0
        private void initalizePostForm()
        {
            UploadPostForm uploadPostForm = new UploadPostForm(r_FacebookManager, this);

            this.Hide();
            uploadPostForm.Show();
        }
Ejemplo n.º 2
0
        private void initalizePostForm()
        {
            UploadPostForm uploadPostForm = new UploadPostForm(this);

            Hide();
            uploadPostForm.Show();
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        private void initalizePostForm()
        {
            FormType       formType       = FormType.UploadPost;
            UploadPostForm uploadPostForm = ReturnableFormFactory.GetForm(formType, this) as UploadPostForm;

            uploadPostForm.m_DoWhenFormIsClosed += () =>
            {
                setFormUsageDetails(uploadPostForm);
            };
            Hide();
            uploadPostForm.ShowDialog();
        }