private void SyllableForm_SizeChanged(object sender, EventArgs e)
 {
     if (WindowState == FormWindowState.Maximized)
     {
         if (ControlManager.CompareApproximateValue(lblWrite.Font.Size, 100))
         {
             return;
         }
         lblWrite.Font = new Font(lblWrite.Font.FontFamily, 100, FontStyle.Regular);
     }
     else
     {
         if (ControlManager.CompareApproximateValue(lblWrite.Font.Size, 48))
         {
             return;
         }
         lblWrite.Font = new Font(lblWrite.Font.FontFamily, 48, FontStyle.Regular);
     }
 }
Esempio n. 2
0
 private void WordsForm_SizeChanged(object sender, EventArgs e)
 {
     this.ToCenter(pnlUpperLetter, pnlUpperHandWrite);
     this.ToCenter(pnlLowerLetter, pnlLowerHandwrite);
     if (WindowState == FormWindowState.Maximized)
     {
         if (ControlManager.CompareApproximateValue(lblWrite.Font.Size, 80))
         {
             return;
         }
         lblWrite.Font = new Font(lblWrite.Font.FontFamily, 80, FontStyle.Regular);
     }
     else
     {
         if (ControlManager.CompareApproximateValue(lblWrite.Font.Size, 36))
         {
             return;
         }
         lblWrite.Font = new Font(lblWrite.Font.FontFamily, 36, FontStyle.Regular);
     }
 }