Exemplo n.º 1
0
 void ShowFrame(CommonControl Frame)
 {
     HideFrames();
     if (CurrentFrame != null)
     {
         CurrentFrame.DeInitialize();
     }
     CurrentFrame = Frame;
     CurrentFrame.Initialize();
     CurrentFrame.Dock = DockStyle.Fill;
     main_panel.Controls.Add(CurrentFrame);
     CurrentFrame.Visible = true;
     SetEnableButtons();
     Refresh();
 }