public void CMin() { if (this.rc < this.gc) { if (this.rc > this.bc) { this.minval = this.bc; this.CompMin = RibbonColor.C.Blue; } else { this.minval = this.rc; this.CompMin = RibbonColor.C.Red; } } else if (this.gc > this.bc) { this.minval = this.bc; this.CompMin = RibbonColor.C.Blue; } else { this.minval = this.gc; this.CompMin = RibbonColor.C.Green; } }
public void CMax() { if (this.rc > this.gc) { if (this.rc < this.bc) { this.maxval = this.bc; this.CompMax = RibbonColor.C.Blue; } else { this.maxval = this.rc; this.CompMax = RibbonColor.C.Red; } } else if (this.gc < this.bc) { this.maxval = this.bc; this.CompMax = RibbonColor.C.Blue; } else { this.maxval = this.gc; this.CompMax = RibbonColor.C.Green; } }