void SaveBtnClick(object sender, EventArgs e) { var dialog = new SaveFileDialog(); dialog.Filter = "Effect Preset Files (.fxp)|*.fxp|Effect Bank Files (.fxb)|*.fxb|All Files|*.*||"; if (dialog.ShowDialog(this) == DialogResult.OK) { string comboBoxStringValue = presetComboBox.Text; this.PluginContext.PluginCommandStub.SetProgramName(comboBoxStringValue); string fxpFilePath = dialog.FileName; VstHost host = VstHost.Instance; host.PluginContext = this.PluginContext; host.SaveFXP(fxpFilePath); FillProgram(PluginContext.PluginCommandStub.GetProgram()); } }