Example #1
0
 protected override void ExecChangeFontSize(ModeFont mF)
 {
     for (int i = 0; i < this.JPList.Count; i++)
     {
         if (this.JPList[i].JPStatus == JobPanelStatus.Open)
         {
             this.JPList[i].JP.ChangeFontSize(mF);
         }
     }
     base.FMode = mF;
 }
Example #2
0
 protected virtual void ExecChangeFontSize(ModeFont mF)
 {
 }
Example #3
0
 public JobSettings()
 {
     string jobSetup = PathInfo.CreateInstance().JobSetup;
     try
     {
         XmlDocument document = new XmlDocument();
         document.Load(jobSetup);
         foreach (XmlElement element2 in document.DocumentElement.ChildNodes)
         {
             if (element2.LocalName == "SizeW")
             {
                 this.sizeW = int.Parse(element2.InnerText);
             }
             if (element2.LocalName == "SizeH")
             {
                 this.sizeH = int.Parse(element2.InnerText);
             }
             if (element2.LocalName == "System")
             {
                 this.sysMode = element2.InnerText[0];
             }
             if ((element2.LocalName == "Maximized") && (element2.InnerText == "1"))
             {
                 this.windowState = FormWindowState.Maximized;
             }
             if (element2.LocalName == "FontMode")
             {
                 if (element2.InnerText == "1")
                 {
                     this.fontMode = ModeFont.large;
                 }
                 if (element2.InnerText == "2")
                 {
                     this.fontMode = ModeFont.small;
                 }
             }
             if (element2.LocalName == "PnlRegularSizeH")
             {
                 this.pnlRegularSizeH = int.Parse(element2.InnerText);
             }
             if (element2.LocalName == "PnlHeaderSizeH")
             {
                 this.pnlHeaderSizeH = int.Parse(element2.InnerText);
             }
             if (element2.LocalName == "PnlGuideSizeH")
             {
                 this.pnlGuideSizeH = int.Parse(element2.InnerText);
             }
             if (element2.LocalName == "PnlResCodeSizeH")
             {
                 this.pnlResCodeSizeH = int.Parse(element2.InnerText);
             }
             if (element2.LocalName == "PnlResMsgSizeH")
             {
                 this.pnlResMsgSizeH = int.Parse(element2.InnerText);
             }
             if (element2.LocalName == "PnlCommonSizeW")
             {
                 this.pnlCommonSizeW = int.Parse(element2.InnerText);
             }
         }
     }
     catch
     {
     }
 }
Example #4
0
 protected override void ExecChangeFontSize(ModeFont mF)
 {
     this.JP.ChangeFontSize(mF);
     base.FMode = mF;
 }
Example #5
0
        public void ChangeFontSize(ModeFont mF)
        {
            switch (mF)
            {
                case ModeFont.normal:
                    this.FontZoom -= this.fontZoom;
                    return;

                case ModeFont.large:
                    this.FontZoom += (this.fontZoom < 0f) ? (2f - this.fontZoom) : 2f;
                    return;

                case ModeFont.small:
                    this.FontZoom -= (this.fontZoom > 0f) ? (1f + this.fontZoom) : 1f;
                    return;
            }
        }