private void updatePinButton()
        {
            if (PacientData.hasPins || PacientData.getIndexImage() < 4 || PacientData.getGroupComponentIndex() != 1)
            {
                this.pin.Visible = false;
                return;
            }


            this.pin.Visible = true;
        }
 private void updateEntityGuide()
 {
     if (PacientData.getIndexImage() == 0 || PacientData.getIndexImage() == 1 || PacientData.hasPins)
     {
         entityGuide.Text = "";
     }
     else if (PacientData.getGroupComponentIndex() == 1)
     {
         entityGuide.Text = "3D view";
     }
     else if (PacientData.getGroupComponentIndex() == 2)
     {
         entityGuide.Text = "Transsection view";
     }
     else if (PacientData.getGroupComponentIndex() == 3)
     {
         entityGuide.Text = "Digital eye";
     }
 }
 private void updateSaveButton()
 {
     if (PacientData.hasPins && PacientData.getPinNumber() != 0)
     {
         this.save.Visible = true;
         return;
     }
     if (PacientData.getIndexImage() < 4)
     {
         this.save.Visible = false;
         return;
     }
     if (PacientData.getGroupComponentIndex() != 1)
     {
         this.save.Visible = false;
         return;
     }
     this.save.Visible = true;
 }
        public static double getRatio()
        {
            if (PacientData.getIndexImage() == 0 || PacientData.getIndexImage() == 1)
            {
                return(1.7660377);
            }
            if (!hasPins)
            {
                if (PacientData.getGroupComponentIndex() == 1)
                {
                    return(1.5705128);
                }
                if (PacientData.getGroupComponentIndex() == 2)
                {
                    return(1.525641);
                }
                if (PacientData.getGroupComponentIndex() == 3)
                {
                    return(1.4807692);
                }
            }
            else
            {
                if (PacientData.getPinNumber() % 3 == 1)
                {
                    return(1.5217391);
                }
                if (PacientData.getPinNumber() % 3 == 2)
                {
                    return(1.4782608);
                }
                if (PacientData.getPinNumber() % 3 == 0)
                {
                    return(1.4347826);
                }
            }

            return(-1);
        }