public PredictionOfCurrencyDataManager(DataParameter dataParameter, DataProcessingMethods dataProcessingMethods, DataValueType dataType, string nameOfCollectorForPredict, List <IDataCollector> collectors) { Collectors = collectors; DataParameter = dataParameter; DataProcessingMethods = dataProcessingMethods; DataType = dataType; NameOfCollectorForPredict = nameOfCollectorForPredict; Names = new string[Collectors.Count]; for (var i = 0; i < Collectors.Count; i++) { Names[i] = Collectors[i].GetType().Name; } DataValueTypeConverter = new Dictionary <DataValueType, Func <PredictionOfCurrencyDataTable, PredictionOfCurrencyDataTable> > { { DataValueType.Absolute, x => x }, { DataValueType.Relative, ConvertInRelative }, { DataValueType.RelativePercentage, ConvertInRelativePercentage } }; DataProcessingMethodsConverter = new Dictionary <DataProcessingMethods, Func <PredictionOfCurrencyDataTable, PredictionOfCurrencyDataTable> > { { DataProcessingMethods.None, x => x }, { DataProcessingMethods.Normalize, Normalize }, { DataProcessingMethods.Scale, Scale }, { DataProcessingMethods.NormalizeAndScale, NormalizeAndScale }, }; }
private void Next_Click(object sender, EventArgs e) { try { string datasource = this.instanceConnection; string auditDatabase = ""; conn = DataProcessingMethods.GetDBConnection(datasource); conn.Open(); frmOperationSelect frmOperationSelect = new frmOperationSelect(database, auditDatabase); MessageBox.Show("Connection to Database successful\n\r\n\rClick OK to Proceed ", "Authentication successful", MessageBoxButtons.OK, MessageBoxIcon.Information); frmOperationSelect.Show(); this.Hide(); } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } finally { conn.Close(); } }
private void Next_Click(object sender, EventArgs e) { credentialDescriptionType = comboCredential.Text; var applicationSelected = DataProcessingMethods.GetApplication(appData, appName); this.appURL = applicationSelected.Name; this.ApplicationID = applicationSelected.ApplicationID; var uniformResourceSelection = DataProcessingMethods.GetCredential(credentialData, credentialDescriptionType); this.UniformResourceNameId = uniformResourceSelection.UniformResourceNameId; this.credID = uniformResourceSelection.CredentialID; var URNData = DataProcessingMethods.GetURNData(appName, UniformResourceNameId); LAFUniformResourceNameData URNSelection = DataProcessingMethods.GetURN(URNData, UniformResourceNameId); this.credURNName = URNSelection.Name; this.Urn = URNSelection.Urn; DataProcessingMethods.InsertUserGroupCredentialValues(userGroupCredentialsToLoad, credentialDescriptionType, txtChangeDesc.Text, filename, progressBar1, chkAudit, Urn, ApplicationID); }
private void Next_Click(object sender, EventArgs e) { string appName = comboApplication2.Text; //string appName = ((ComboBoxItem)comboApplication.SelectedItem).Content.ToString(); DataProcessingMethods.DeleteUserGroups(userGroupsToLoad, appName, txtChangeDesc.Text, filename, progressBar1, null); }
private void Next_Click(object sender, EventArgs e) { DataProcessingMethods.InsertLAFDAUserGroups(userGroupsToLoad, "LAF", txtChangeDesc.Text, filename, progressBar1); Next.Enabled = false; txtChangeDesc.Text = null; filePath.Text = null; btnBrowse.Enabled = true; }
private void setApplicationCombo() { var appData = DataProcessingMethods.GetLAFApplications(); foreach (LAFApplicationData row in appData) { if (!comboApplication.Items.Contains(row.Name)) { comboApplication.Items.Add(row.Name); } } }
private void setApplicationCombo(ComboBox cmboBox) { this.appData = DataProcessingMethods.GetLAFApplications(); foreach (LAFApplicationData row in appData) { if (!cmboBox.Items.Contains(row.Name)) { cmboBox.Items.Add(row.Name); } } }
private void setCredentialCombo(string appName) { comboCredential.Items.Clear(); var credentialData = DataProcessingMethods.GetLAFCredentials(appName); foreach (LAFCredentialData row in credentialData) { if (!comboCredential.Items.Contains(row.Description)) { comboCredential.Items.Add(row.Description); } } }
private void Next_Click(object sender, EventArgs e) { string appName = comboApplication2.Text; var applicationSelected = DataProcessingMethods.GetApplication(appData, appName); //this.appURL = applicationSelected.Name; this.appID = applicationSelected.ApplicationID; //string appName = ((ComboBoxItem)comboApplication.SelectedItem).Content.ToString(); DataProcessingMethods.InsertUserGroups(userGroupsToLoad, appName, txtChangeDesc.Text, filename, progressBar1, chkAudit, appID); }
private void Next_Click(object sender, EventArgs e) { credentialDescriptionType = comboCredential.Text; var applicationSelected = DataProcessingMethods.GetApplication(appData, appName); this.appURL = applicationSelected.ApplicationUrl; this.ApplicationID = applicationSelected.ApplicationID; var sourceAppSelected = DataProcessingMethods.GetApplication(appData, srcAppName); if (!(sourceAppSelected == null)) { this.sourceApplicationURL = sourceAppSelected.ApplicationUrl; } var credentialSelection = DataProcessingMethods.GetCredential(credData, credentialDescriptionType); this.UniformResourceNameId = credentialSelection.UniformResourceNameId; this.credID = credentialSelection.CredentialID; var URNData = DataProcessingMethods.GetURNData(appName, UniformResourceNameId); LAFUniformResourceNameData URNSelection = DataProcessingMethods.GetURN(URNData, UniformResourceNameId); this.credURNName = URNSelection.Name; this.Urn = URNSelection.Urn; DataProcessingMethods.InsertCredentialValues(credentialsToLoad, credentialDescriptionType, txtChangeDesc.Text, filename, progressBar1, chkAudit, appName, credURNName, appURL, Urn, ApplicationID, credID, UniformResourceNameId, sourceApplicationURL); }
private void button1_Click(object sender, EventArgs e) { if (optCredentialValues.Checked == true) { WindowsFormsApplication3.frmCredValues frmCredValues = new WindowsFormsApplication3.frmCredValues(); frmCredValues.Show(); } if (optUserGroups.Checked == true) { WindowsFormsApplication3.frmCreateUserGroups frmUserGroups = new WindowsFormsApplication3.frmCreateUserGroups(); frmUserGroups.Show(); } if (optCredValuesToUserGroups.Checked == true) { WindowsFormsApplication3.frmAddCredValuesToUserGroups frmAddCredsToUserGroups = new WindowsFormsApplication3.frmAddCredValuesToUserGroups(); frmAddCredsToUserGroups.Show(); } if (optUsersToUserGroups.Checked == true) { if (DataProcessingMethods.CheckIfStoredProcsExist("sp_InsertUserGroupMember")) { WindowsFormsApplication3.frmAddUsersToUserGroups frmAddUsersToUserGroups1 = new WindowsFormsApplication3.frmAddUsersToUserGroups(); frmAddUsersToUserGroups1.Show(); } } if (optUsers.Checked == true) { if (DataProcessingMethods.CheckIfStoredProcsExist("sp_InsertUser") && DataProcessingMethods.CheckIfStoredProcsExist("sp_Audit_InsertUser")) { WindowsFormsApplication3.frmCreateUsers frmCreateUsers1 = new WindowsFormsApplication3.frmCreateUsers(); frmCreateUsers1.Show(); } } if (optLAFDAUserGroups.Checked == true) { WindowsFormsApplication3.frmLAFDAUserGroups frmLAFDAUserGroups1 = new WindowsFormsApplication3.frmLAFDAUserGroups(); frmLAFDAUserGroups1.Show(); } if (delCredValues.Checked == true) { if (DataProcessingMethods.CheckIfStoredProcsExist("sp_DeleteCredentialValue")) { WindowsFormsApplication3.frmDeleteCredValues frmDeleteCredValues1 = new WindowsFormsApplication3.frmDeleteCredValues(); frmDeleteCredValues1.Show(); } } if (delUserGroups.Checked == true) { if (DataProcessingMethods.CheckIfStoredProcsExist("sp_DeleteUserGroup")) { WindowsFormsApplication3.frmDeleteUserGroups frmDeleteUserGroups1 = new WindowsFormsApplication3.frmDeleteUserGroups(); frmDeleteUserGroups1.Show(); } } if (delCredValuesFromUG.Checked == true) { if (DataProcessingMethods.CheckIfStoredProcsExist("sp_DeleteUserGroupCredentialValues")) { WindowsFormsApplication3.frmDeleteCredsFromUserGroups fromDeleteCredsFromUserGroups1 = new WindowsFormsApplication3.frmDeleteCredsFromUserGroups(); fromDeleteCredsFromUserGroups1.Show(); } } if (delUsersFromUG.Checked == true) { if (DataProcessingMethods.CheckIfStoredProcsExist("sp_DeleteUserGroupMemberFromUserGroup")) { WindowsFormsApplication3.frmDeleteUsersFromUserGroups frmDeleteUsersFromUserGroups1 = new WindowsFormsApplication3.frmDeleteUsersFromUserGroups(); frmDeleteUsersFromUserGroups1.Show(); } } }
private void Next_Click(object sender, EventArgs e) { labelUploading.Visible = true; DataProcessingMethods.InsertUsers(usersToLoad, txtChangeDesc.Text, filename, this); labelUploading.Visible = false; }
private void Next_Click(object sender, EventArgs e) { credentialDescriptionType = comboCredential.Text; DataProcessingMethods.DeleteUserGroupCredentialValues(userGroupCredentialsToLoad, txtChangeDesc.Text, filename, progressBar1, null, credentialDescriptionType); }
private void Next_Click(object sender, EventArgs e) { labelUploading.Visible = true; DataProcessingMethods.DeleteUserGroupMembers(userGroupMembersToLoad, txtChangeDesc.Text, filename, progressBar1, null); labelUploading.Visible = false; }