private void btLogoEdit_Click(object sender, EventArgs e) { if (lbLogos.SelectedItem != null) { var effect = VideoCapture1.Video_Effects_Get((string)lbLogos.SelectedItem); if (effect.GetEffectType() == VFVideoEffectType.TextLogo) { var dlg = new TextLogoSettingsDialog(); dlg.Attach(effect); dlg.ShowDialog(this); dlg.Dispose(); } else if (effect.GetEffectType() == VFVideoEffectType.ImageLogo) { var dlg = new ImageLogoSettingsDialog(); dlg.Attach(effect); dlg.ShowDialog(this); dlg.Dispose(); } } }
private void btTextLogoEdit_Click(object sender, EventArgs e) { if (lbTextLogos.SelectedItem != null) { var dlg = new TextLogoSettingsDialog(); var effect = this._player.Video_Overlays_Get((string)lbTextLogos.SelectedItem); dlg.Attach(effect); dlg.ShowDialog(this); dlg.Dispose(); } }