public FormLikestPhotoInAlbum() { InitializeComponent(); buttonExit.Enabled = true; m_ProxAlbums = LogicServices.buildProxAlbumList(LogicServices.GetAlbums()); fillListBoxWithProxyAlbums(); }
private void buttonLikestPhotoInAlbum_Click(object sender, EventArgs e) { if ((LogicServices.GetAlbums()).Count == 0) { MessageBox.Show("You don't have any albums, sorry"); } else { FormLikestPhotoInAlbum formAlbumsListBox = new FormLikestPhotoInAlbum(); formAlbumsListBox.StartPosition = FormStartPosition.CenterParent; formAlbumsListBox.ShowDialog(); } }