/// <summary> /// Apply changed settings /// </summary> public void ApplyChanges() { if (comboBoxPath.Tag != null || textArgs.Tag != null) { string name = Path.GetFileNameWithoutExtension(comboBoxPath.Text.Trim()); AppHelper app = new AppHelper(name, comboBoxPath.Text, textArgs.Text.Trim()); Properties.Settings.Default.MergeAppHelper = app.ToString(); ClassMerge.Configure(app); } }
/// <summary> /// Apply changed settings /// </summary> public void ApplyChanges() { if (comboBoxPath.Tag != null || textArgs.Tag != null) { try { string name = Path.GetFileNameWithoutExtension(comboBoxPath.Text.Trim()); AppHelper app = new AppHelper(name, comboBoxPath.Text, textArgs.Text.Trim()); Properties.Settings.Default.MergeAppHelper = app.ToString(); ClassMerge.Configure(app); } catch (Exception ex) { App.PrintLogMessage(ex.Message, MessageType.Error); } } }