// %Factory Method% private void buttonAlbumsSorting_Click(object sender, EventArgs e) { Form albumsSorting = FormFactoryForFeatures.Create(typeof(FormAlbumsSorting)); (albumsSorting as FormAlbumsSorting).LoggedInUser = m_LoggedInUser; albumsSorting.ShowDialog(); }
// %Factory Method% private void buttonListOfLikers_Click(object sender, EventArgs e) { Form listOfWallPostsLikers = FormFactoryForFeatures.Create(typeof(FormListOfWallPostsLikers)); (listOfWallPostsLikers as FormListOfWallPostsLikers).LoggedInUser = m_LoggedInUser; listOfWallPostsLikers.ShowDialog(); }