private void btnOK_Click(object sender, EventArgs e) { _engineManager = new InfinitySettings.EngineManager.EngineManager(); _engineManager.EngineObject.EngineTitle = txtEngine.Text; _engineManager.EngineObject.Name = txtName.Text; _engineManager.EngineObject.Author = txtAuthor.Text; _engineManager.EngineObject.IsBelowNormal = false; _engineManager.EngineObject.IsActive = true; _engineManager.EngineObject.FilePath = sourceFilePath; if (_engineManager.AddEngineNode() == true) { string targetFilePath = Ap.FolderEngines + engineFileName; if (sourceFilePath != targetFilePath && !UFile.Exists(targetFilePath)) { UFile.Copy(sourceFilePath, targetFilePath); } MessageForm.Show(this, MsgE.InfoEngineLoaded); this.Close(); } else { MessageForm.Show(this, MsgE.InfoEngineExsist); } }