예제 #1
0
파일: main_frm.cs 프로젝트: sabatex/PUB_ZIK
 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();
 }