protected void BlockingSlide_TextChanged(object sender, EventArgs e) { GetTextboxVals(); SlideEventCalc slev = new SlideEventCalc(distance, modfactor, block, fdose, fw); NewSlide(slev); }
protected void RButtonFW_SelectedIndexChanged(object sender, EventArgs e) { GetTextboxVals(); SlideEventCalc slev = new SlideEventCalc(distance, modfactor, block, fdose, fw); NewSlide(slev); }
} //slideevelsent protected void DistanceSlide_BoundControl_TextChanged(object sender, EventArgs e) { GetTextboxVals(); SlideEventCalc slev = new SlideEventCalc(distance, modfactor, block, fdose, fw); NewSlide(slev); //UpdateResult.Update(); }
/// <summary> /// event for slider /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SlideEventSent(object sender, SlideEventCalc e) { //resultbox.Text = e.Distance.ToString(); GetTextboxVals(); if ((fdose <= 0) || (modfactor <= 0)) { GPtext.ForeColor = System.Drawing.Color.Black; GPtext.ToolTip = "NaN"; resultbox.Text = "NaN"; GPtext.Text = "NaN"; } else if (e.Gp < 12) { resultbox.Text = e.Pitch.ToString("0.000"); GPtext.Text = "<12"; GPtext.ToolTip = "To short gantry period time, \n consider lower modulation factor"; GPtext.ForeColor = System.Drawing.Color.Red; } else if ((e.Gp > 50) && (e.Gp <= 60)) { resultbox.Text = e.Pitch.ToString("0.000"); GPtext.Text = e.Gp.ToString("0.0"); GPtext.ToolTip = "To long gantry period time, \n consider lower modulation factor"; GPtext.ForeColor = System.Drawing.Color.Red; } else if (e.Gp > 60) { resultbox.Text = e.Pitch.ToString("0.000"); GPtext.Text = ">60"; GPtext.ToolTip = "To long gantry period time, \n consider lower modulation factor"; GPtext.ForeColor = System.Drawing.Color.Red; } else { GPtext.ForeColor = System.Drawing.Color.Black; resultbox.Text = e.Pitch.ToString("0.000"); GPtext.Text = e.Gp.ToString("0.0"); GPtext.ToolTip = ""; //resultbox.Text = e.ModulationFactor.ToString(); } } //slideevelsent
private void NewSlide(SlideEventCalc e) { SlideEv(this, e); }