private void _btnEffect_Click(object sender, EventArgs e) { EffectsDialog dlg = new EffectsDialog(_effectOptions); if (dlg.ShowDialog(this) == DialogResult.OK) { _effectOptions = dlg.EffectOptions; Invalidate(); } }
private void _btnEffect_Click(object sender, EventArgs e) { ComboBoxItem item = (ComboBoxItem)_cmbTransitionStyle.SelectedItem; EffectsDialog dlg = new EffectsDialog(new EffectOptions( _effectType, (int)_numDelay.Value, (int)_numGrain.Value, (int)_numPasses.Value, (int)_numWand.Value)); if (dlg.ShowDialog(this) == DialogResult.OK) { _effectType = dlg.EffectOptions.Type; _numDelay.Value = dlg.EffectOptions.Delay; _numGrain.Value = dlg.EffectOptions.Grain; _numPasses.Value = dlg.EffectOptions.Passes; _numWand.Value = dlg.EffectOptions.Wand; } }