private void SetDefaultValues() { text_posX.Text = videorecordingsettings.PosX.ToString(); text_posY.Text = videorecordingsettings.PosY.ToString(); text_ResX.Text = videorecordingsettings.ResX.ToString(); text_ResY.Text = videorecordingsettings.ResY.ToString(); text_SizeX.Text = videorecordingsettings.SizeX.ToString(); text_SizeY.Text = videorecordingsettings.SizeY.ToString(); FrameRate_Text.Text = videorecordingsettings.FrameRate.ToString(); CompressionTextBox.Text = videorecordingsettings.compressionRate.ToString(); InterpolationMode interpolationMode = videorecordingsettings.interpolationMode; SmoothingMode smoothingMode = videorecordingsettings.smoothingMode; AA_Combobox.DataSource = Enum.GetNames(typeof(SmoothingMode)); AA_Combobox.SelectedItem = smoothingMode.ToString(); AA_Combobox.SelectedText = smoothingMode.ToString(); Interpolation_Combobox.DataSource = Enum.GetNames(typeof(InterpolationMode)); Interpolation_Combobox.SelectedItem = interpolationMode.ToString(); Interpolation_Combobox.SelectedText = interpolationMode.ToString(); AudioDeviceChanger.DataSource = playbackDevices; saveVideoRecording.AddExtension = true; saveVideoRecording.DefaultExt = "sevm"; saveVideoRecording.OverwritePrompt = true; saveVideoRecording.InitialDirectory = SEDEFAULT; }
public override PersistObject ToPersistObject() { PersistObject obj = new PersistObject("Symbol"); obj.AddAttribute("type", Path.GetFileName(this.GetType().Assembly.Location) + "," + this.GetType().ToString()); obj.AddAttribute("outlinecolor", ColorHelper.ColorToString(_outlineColor)); obj.AddAttribute("fillcolor", ColorHelper.ColorToString(_fillColor)); obj.AddAttribute("width", _width.ToString()); obj.AddAttribute("outlinewidth", _outlineWidth.ToString()); obj.AddAttribute("smoothingmode", _smoothingMode.ToString()); return(obj); }
public PersistObject ToPersistObject() { PersistObject obj = new PersistObject("MapArguments"); if (_fullExtent != null) { obj.AddSubNode(EnvelopeToPersisitObject(_fullExtent, "FullExtent")); } if (_extent != null) { obj.AddSubNode(EnvelopeToPersisitObject(_extent, "Extent")); } obj.AddAttribute("backcolor", ColorHelper.ColorToString(_backColor)); obj.AddAttribute("smoothingmode", _smoothingMode.ToString()); obj.AddAttribute("spatialreference", _targetSpatialReference != null ? _targetSpatialReference.ToWKTString() : string.Empty); return(obj); }
public void OnGUI() { GUI.Label(new Rect(0f, 40f, 500f, 100f), "0 - No Smoothing 1 - Highest Smoothing\n" + "Smoothing Mode : " + smoothingMode.ToString() + "\nKalman Filter : " + useKalmanFilter + "\nSmoothing Factor : " + val.ToString()); }