private void StereoModeChoiceAction(ChoiceItem selected) { if (stereoModes.ContainsKey(selected.Label)) { CurrentStereoMode = stereoModes[selected.Label]; } }
private void AddStereoModes() { stereoModes["Mono"] = new StereoMode(null); stereoModes["R/C"] = new StereoMode(renderer.Programs["Anachrome"]); stereoModes["G/M"] = new StereoMode(renderer.Programs["Triochrome"]); stereoModes["B/A"] = new StereoMode(renderer.Programs["ColorCode"]); stereoModes["Mix"] = new StereoMode(renderer.Programs["Blend"]); }