public static Form CreateFacebookForm(Type i_TypeOfForm, User i_LoggedUser)
        {
            Form requestedForm = null;         
            if (i_TypeOfForm.Equals(typeof(LikeAnalyzerForm)))
            {
                requestedForm = new LikeAnalyzerForm(i_LoggedUser);
            }
            else if (i_TypeOfForm.Equals(typeof(FormMusic)))
            {
                requestedForm = new FormMusic(i_LoggedUser);
            }

            return requestedForm;
        }
Exemple #2
0
 private void buttonLikeAnalyzer_Click(object sender, EventArgs e)
 {
     m_likeAnalyzerForm = new LikeAnalyzerForm(m_LoggedInUser);
     m_likeAnalyzerForm.ShowDialog();            
 }