private void setOpacity() { GetNumberSlider gn = new GetNumberSlider(0.0d, this._opacity, 1.0d, "Set Proxemics Opacity", "Set a number for the transparency of the proxamic colors"); gn.Owner = this._host; gn.ShowDialog(); this._opacity = gn.GetNumber; for (int i = 0; i < this.brushes.Length; i++) { this.brushes[i] = this.brushes[i].Clone(); this.brushes[i].Opacity = this._opacity; } gn = null; }
private void setDataColor_Click(object sender, RoutedEventArgs e) { foreach (object item in this.applyColor.Items) { ((MenuItem)item).IsChecked = false; } ((MenuItem)sender).IsChecked = true; this._clrMode = ColorMode.Data; var getNumber = new GetNumberSlider(0.0d, this._dataOpacity, 1.0d, "Set Data Opacity", null); getNumber.Owner = this; getNumber.ShowDialog(); this._dataOpacity = getNumber.GetNumber; getNumber = null; this.UpdateMaterial(); }