示例#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();
 }