public static int getToothEntitiesNumber() { if (PacientData.hasPins) { return(toothEntitiesNumber); } toothEntitiesNumber = PacientData.getGroupIndex(); return(toothEntitiesNumber); }
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(); }
private void updateMaximImages() { if (PacientData.hasPins) { PacientData.setMaximImages(1); return; } if (PacientData.getGroupIndex() == 0) { PacientData.setMaximImages(2); return; } PacientData.setMaximImages(3); }
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(); }
private void updateCurrentTooth() { PacientData.currentTooth = PacientData.toothDetails[PacientData.getGroupIndex()]; }