Пример #1
0
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (this.tabControl1.SelectedIndex)
            {
                case 0:
                case 1:
                    GetPhotoCategories();
                    break;
                case 2:
                    FrmMyAlbumManagement f = new FrmMyAlbumManagement();
                    f.Dock = DockStyle.Fill;
                    f.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                    f.TopLevel = false;
                    f.Show();
                    this.tabControl1.TabPages[this.tabControl1.SelectedIndex].Controls.Add(f);
                    break;
            }

        }
Пример #2
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     FrmMyAlbumManagement f = new FrmMyAlbumManagement();
  
     f.Show();
 }