Esempio n. 1
0
 public Form1()
 {
     CheckConnection();
     InitializeComponent();
     this.DoubleBuffered = true;
     Panels = new Panel[8];
     Panels[0] = panelIntro;
     Panels[1] = panelButtons;
     Panels[2] = panelShowSongs;
     Panels[3] = panelAddSong;
     Panels[4] = panelAddCategory;
     Panels[5] = panelWaitList;
     Panels[6] = panelRemoveSong;
     Panels[7] = panelListenChords;
     //менување на големината на секој од панелите
     Panels[1].Location = new Point(0, 0);
     Panels[0].Location = new Point(0, 0);
     Panels[0].Width = this.Width;
     Panels[0].Height = this.Height;
     for (int i = 2; i < 8; i++)
     {
         Panels[i].Location = new Point(225, 0);
         Panels[i].Width = this.Width - 225;
         Panels[i].Height = this.Height;
     }
     //креирање на контролер
     Kontroler = new Controller(Panels, lbSongs, cbShowCategory, cbAddSongCategory,lbRemoveSong, cbWaitSongCategory,lbWaitSong);
 }
Esempio n. 2
0
        public Form1()
        {
            CheckConnection();
            InitializeComponent();
            this.DoubleBuffered = true;
            Panels = new Panel[8];
            Panels[0] = panelIntro;
            Panels[0].Location = new Point(0, 0);
            Panels[0].Width = this.Width;
            Panels[0].Height = this.Height;
            Panels[1] = panelButtons;
            Panels[1].Location = new Point(0, 0);
            //   Panels[1].Width = this.Width;
            //   Panels[1].Height = this.Height;
            Panels[2] = panelShowSongs;
            Panels[2].Location = new Point(225, 0);
            Panels[2].Width = this.Width - 225;
            Panels[2].Height = this.Height;
            Panels[3] = panelAddSong;
            Panels[3].Location = new Point(225, 0);
            Panels[3].Width = this.Width - 225;
            Panels[3].Height = this.Height;
            Panels[4] = panelAddCategory;
            Panels[4].Location = new Point(225, 0);
            Panels[4].Width = this.Width - 225;
            Panels[4].Height = this.Height;
            Panels[5] = panelWaitList;
            Panels[5].Location = new Point(225, 0);
            Panels[5].Width = this.Width - 225;
            Panels[5].Height = this.Height;
            Panels[6] = panelRemoveSong;
            Panels[6].Location = new Point(225, 0);
            Panels[6].Width = this.Width - 225;
            Panels[6].Height = this.Height;
            Panels[7] = panelListenChords;
            Panels[7].Location = new Point(225, 0);
            Panels[7].Width = this.Width - 225;
            Panels[7].Height = this.Height;

            Kontroler = new Controller(Panels, lbSongs, cbShowCategory, cbAddSongCategory,lbRemoveSong);
        }