예제 #1
0
 static void Main()
 {
     AnimeModel model = new AnimeModel();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new AnimeManagementSystemForm(model));
 }
 public PageController(AnimeModel model, TabControl tabControl)
 {
     _model = model;
     _tabControl = tabControl;
     for (int i = 0; i < _tabPages.Length; i++)
     {
         _tabPages[i] = tabControl.TabPages[i];
         _isTabShow[i] = true;
     }
 }
 public AnimeManagementSystemForm(AnimeModel model)
 {
     InitializeComponent();
     _pageController = new PageController(model, _tabControl);
     _model = model;
 }