예제 #1
0
        private void InitOptions()
        {
            settingsOptions = new List <Settings>();
            settingsOptions.Add(new Settings(1.0f, 200f, 13, 1));  //Waveform
            settingsOptions.Add(new Settings(5.0f, 300f, 13, 1));  //Frequency
            settingsOptions.Add(new Settings(5.0f, 200f, 13, 1));  //Reflections
            settingsOptions.Add(new Settings(5.0f, 300f, 13, 20)); //Frequency Wave
            settingsOptions.Add(new Settings(8.0f, 200f, 13, 10)); //Circle Outline
            settingsOptions.Add(new Settings(8.0f, 200f, 13, 10)); //Shadow
            settingsOptions.Add(new Settings(8.0f, 200f, 13, 10)); //Color Wheel
            settingsOptions.Add(new Settings(4.0f, 100f, 13, 10)); //Mirrored Circle

            renderOptions = new List <RenderBase>();
            renderOptions.Add(new RenderWaveform(settingsOptions[renderOptions.Count], "Waveform"));
            renderOptions.Add(new RenderBasicFreq(settingsOptions[renderOptions.Count], "Frequency"));
            renderOptions.Add(new RenderReflectedFreq(settingsOptions[renderOptions.Count], "Reflections"));
            renderOptions.Add(new RenderWaveFreq(settingsOptions[renderOptions.Count], "Frequency Wave"));
            renderOptions.Add(new RenderOutlineCircle(settingsOptions[renderOptions.Count], "Circle Outline"));
            renderOptions.Add(new RenderShadowCircle(settingsOptions[renderOptions.Count], "Shadow"));
            renderOptions.Add(new RenderRainbowCircle(settingsOptions[renderOptions.Count], "Color Wheel"));
            renderOptions.Add(new RenderReflectedCircle(settingsOptions[renderOptions.Count], "Mirrored Circle"));

            Settings = settingsOptions[0];
            Render   = renderOptions[0];
        }
예제 #2
0
 private void UpdateSettings()
 {
     Settings = settingsOptions[renderModeComboBox.SelectedIndex];
     Render   = renderOptions[renderModeComboBox.SelectedIndex];
     xScaleNumberBox.DataBindings.Clear();
     xScaleNumberBox.DataBindings.Add("Value", Settings, "XScale", false, DataSourceUpdateMode.OnPropertyChanged);
     yScaleNumberBox.DataBindings.Clear();
     yScaleNumberBox.DataBindings.Add("Value", Settings, "YScale", false, DataSourceUpdateMode.OnPropertyChanged);
     samplePowNumberBox.DataBindings.Clear();
     samplePowNumberBox.DataBindings.Add("Value", Settings, "SamplePow", false, DataSourceUpdateMode.OnPropertyChanged);
     smoothingNumberBox.DataBindings.Clear();
     smoothingNumberBox.DataBindings.Add("Value", Settings, "Smoothing", false, DataSourceUpdateMode.OnPropertyChanged);
     colorNamesListBox.DataSource = Settings.Colors;
     colorsListBox.DataSource     = Settings.Colors;
 }
예제 #3
0
 public RenderEventArgs(RenderBase r)
 {
     Render = r;
 }
예제 #4
0
 private void UpdateSettings(object sender, RenderEventArgs e)
 {
     activeRender = e.Render;
 }