コード例 #1
0
 public static int getToothEntitiesNumber()
 {
     if (PacientData.hasPins)
     {
         return(toothEntitiesNumber);
     }
     toothEntitiesNumber = PacientData.getGroupIndex();
     return(toothEntitiesNumber);
 }
コード例 #2
0
        private void pin_Click(object sender, EventArgs e)
        {
            gf2.Hide();
            showHideSettings.BackgroundImage = optionsButtonDown;
            isDownButton = true;
            DrawRectangle.graphics.Clear(Color.White);

            AllPatientImages.setGroupMaximImages(15);
            PacientData.hasPins             = true;
            PacientData.toothEntitiesNumber = PacientData.getGroupIndex() - 1;
            this.updateAllFields();
        }
コード例 #3
0
 private void updateMaximImages()
 {
     if (PacientData.hasPins)
     {
         PacientData.setMaximImages(1);
         return;
     }
     if (PacientData.getGroupIndex() == 0)
     {
         PacientData.setMaximImages(2);
         return;
     }
     PacientData.setMaximImages(3);
 }
コード例 #4
0
        private void updateTitle()
        {
            if (PacientData.getIndexImage() == 0)
            {
                indexEntityOrTooth.Text = "Over view 1";
                return;
            }
            if (PacientData.getIndexImage() == 1)
            {
                indexEntityOrTooth.Text = "Over view 2";
                return;
            }
            if (!PacientData.hasPins)
            {
                indexEntityOrTooth.Text = "Implant #" + PacientData.getGroupIndex();
                return;
            }
            int diference = 1 + 3 * PacientData.getToothEntitiesNumber();

            indexEntityOrTooth.Text = "Anchor " + PacientData.getPinNumber();
        }
コード例 #5
0
 private void updateCurrentTooth()
 {
     PacientData.currentTooth = PacientData.toothDetails[PacientData.getGroupIndex()];
 }