Esempio n. 1
0
        public static Form CreateForm(eSupportedForms i_FormType)
        {
            Form newForm = null;

            switch (i_FormType)
            {
            case eSupportedForms.Login:
            {
                newForm = new FormLogin();
                break;
            }
            }

            return(newForm);
        }
        private void loginScreenToFaceBook()
        {
            if (m_FormLogin == null)
            {
                m_FormLogin = FormCreator.CreateForm(FormCreator.eSupportedForms.Login) as FormLogin;
            }

            m_FormLogin.ShowDialog();
            if (m_FormLogin.DialogResult == DialogResult.OK)
            {
                clearAllData();
                m_LoggedInUser           = m_FormLogin.m_LoggedInUser;
                m_FacebookServicesFacade = new FacebookServicesFacade();
                m_FacebookServicesFacade.DoWhenUserLoggedIn(m_LoggedInUser);
                this.Show();
                loadUserLoggenInDetails();
            }
            else
            {
                Environment.Exit(0);
            }
        }