Example #1
0
        private void butSetup_Click(object sender, EventArgs e)
        {
            FormPerioGraphicalSetup fpgs = new FormPerioGraphicalSetup();

            if (fpgs.ShowDialog() == DialogResult.OK)
            {
                toothChart.ColorCAL            = PrefC.GetColor(PrefName.PerioColorCAL);
                toothChart.ColorFurcations     = PrefC.GetColor(PrefName.PerioColorFurcations);
                toothChart.ColorFurcationsRed  = PrefC.GetColor(PrefName.PerioColorFurcationsRed);
                toothChart.ColorGingivalMargin = PrefC.GetColor(PrefName.PerioColorGM);
                toothChart.ColorMGJ            = PrefC.GetColor(PrefName.PerioColorMGJ);
                toothChart.ColorProbing        = PrefC.GetColor(PrefName.PerioColorProbing);
                toothChart.ColorProbingRed     = PrefC.GetColor(PrefName.PerioColorProbingRed);
                this.toothChart.Invalidate();
            }
        }
		private void butSetup_Click(object sender,EventArgs e) {
			FormPerioGraphicalSetup fpgs=new FormPerioGraphicalSetup();
			if(fpgs.ShowDialog()==DialogResult.OK){
				toothChart.ColorCAL=PrefC.GetColor(PrefName.PerioColorCAL);
				toothChart.ColorFurcations=PrefC.GetColor(PrefName.PerioColorFurcations);
				toothChart.ColorFurcationsRed=PrefC.GetColor(PrefName.PerioColorFurcationsRed);
				toothChart.ColorGingivalMargin=PrefC.GetColor(PrefName.PerioColorGM);
				toothChart.ColorMGJ=PrefC.GetColor(PrefName.PerioColorMGJ);	
				toothChart.ColorProbing=PrefC.GetColor(PrefName.PerioColorProbing);
				toothChart.ColorProbingRed=PrefC.GetColor(PrefName.PerioColorProbingRed);
				this.toothChart.Invalidate();
			}
		}