Esempio n. 1
0
        public void AddMidRegions(GUIManager guiManager, MainForm mainForm)
        {
            GUITempoCard guiTempo = new GUITempoCard();

            guiTempo.AddTempo(guiManager, mainForm, this);

            GUITimeSignatureCard guiTimeSignature = new GUITimeSignatureCard();

            guiTimeSignature.AddTimeSignature(guiManager, mainForm, this);

            GUIChordCard guiChordCard = new GUIChordCard();

            guiChordCard.AddChord(guiManager, mainForm, this);

            GUIBeatCard guiBeatCard = new GUIBeatCard();

            guiBeatCard.AddBeat(guiManager, mainForm, this);

            Panel tempoPanel = new Panel();

            tempoPanel.Location    = getMidPanelPosition(mainForm);
            tempoPanel.Name        = GUIConstants.MID_PANEL_NAME;
            tempoPanel.Size        = GetMidPanelSize(mainForm);
            tempoPanel.TabIndex    = 0;
            tempoPanel.BackColor   = GUIConstants.MID_PANEL_COLOR;
            tempoPanel.BorderStyle = BorderStyle.FixedSingle;
            mainForm.Controls.Add(tempoPanel);
        }
Esempio n. 2
0
        public void ResizeMidRegions(GUIManager guiManager, MainForm mainForm)
        {
            Panel tempoPanel = (Panel)mainForm.Controls.Find(GUIConstants.MID_PANEL_NAME, false)[0];

            tempoPanel.Location = getMidPanelPosition(mainForm);
            tempoPanel.Size     = GetMidPanelSize(mainForm);
            float fontSize = GUIConstants.MID_PANEL_CONTENT_FONT_SIZE * Convert.ToSingle(tempoPanel.Height) / 81.0F;

            tempoPanel.Font = new System.Drawing.Font(GUIConstants.FONT_FAMILY, fontSize, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

            GUITempoCard guiTempo = new GUITempoCard();

            guiTempo.ResizeTempo(guiManager, mainForm, this);

            GUITimeSignatureCard guiTimeSignature = new GUITimeSignatureCard();

            guiTimeSignature.ResizeTimeSignature(guiManager, mainForm, this);

            GUIChordCard guiChordCard = new GUIChordCard();

            guiChordCard.ResizeChord(guiManager, mainForm, this);

            GUIBeatCard guiBeatCard = new GUIBeatCard();

            guiBeatCard.ResizeBeat(guiManager, mainForm, this);
        }