private void ImportMatchDialogForm_Load(object sender, EventArgs e) { if (Properties.Settings.Default.ImportMatch_Location.X > 0 && Properties.Settings.Default.ImportMatch_Location.Y > 0) { this.Location = Properties.Settings.Default.ImportMatch_Location; } if (MatchCommand.ToLower().Equals("update")) { UpdateButton.Focus(); } else if (MatchCommand.ToLower().Equals("updateall")) { UpdateAllButton.Focus(); } else if (MatchCommand.ToLower().Equals("skip")) { SkipButton.Focus(); } else if (MatchCommand.ToLower().Equals("skipall")) { SkipAllButton.Focus(); } else { SkipButton.Focus(); } }
void ReleaseDesignerOutlets() { if (UpdateButton != null) { UpdateButton.Dispose(); UpdateButton = null; } if (WebsiteButton != null) { WebsiteButton.Dispose(); WebsiteButton = null; } if (HeadingLabel != null) { HeadingLabel.Dispose(); HeadingLabel = null; } if (TextLabel != null) { TextLabel.Dispose(); TextLabel = null; } }
//Update Education on the Profile page public void UpdateEducationOnProfile(string expectedEducationTitle, string university, string country) { IList <IWebElement> rows = driver.WaitForListOfElements(By.XPath("(//table[@class='ui fixed table'])[3]//tbody/tr/td[3]")); for (int rnum = 1; rnum <= rows.Count; rnum++) { string title = null; title = (driver.WaitForElement(By.XPath("(//table[@class='ui fixed table'])[3]//tbody[" + rnum + "]/tr/td[3]"))).Text; if (title == expectedEducationTitle) { //Click on Update icon to update the record driver.WaitForElement(By.XPath("(//table[@class='ui fixed table'])[3]//tbody[" + rnum + "]/tr/td[6]/span[1]/i[@class='outline write icon']")).Click(); //Update University driver.WaitForElementIsVisible(CollegeName); CollegeName.Clear(); CollegeName.SendKeys(university); //Update Country SelectElement selectCountry = new SelectElement(CollegeCountry); selectCountry.SelectByValue(country); //Click on Update button to update the University and Country of Education UpdateButton.Click(); break; } } }
private void RerideReason_Load(object sender, EventArgs e) { if (Properties.Settings.Default.ImportMatch_Location.X > 0 && Properties.Settings.Default.ImportMatch_Location.Y > 0) { this.Location = Properties.Settings.Default.RerideReason_Location; } if (myCommandValue.ToLower().Equals("update")) { UpdateButton.Focus(); } else if (myCommandValue.ToLower().Equals("updatewithprotect")) { UpdateWithProtButton.Focus(); } else if (myCommandValue.ToLower().Equals("cancel")) { CancelButton.Focus(); } else { CancelButton.Focus(); } RerideReasonTextbox.Text = myRerideReason; }
/// <summary> /// Enters the old password, new password and confirmation password on the update password form. /// </summary> /// <param name="oldPassword">The users old password.</param> /// <param name="newPassword">The users new password.</param> /// <param name="confirmPassword">The users new password.</param> public void UpdatePassword(string oldPassword, string newPassword, string confirmPassword) { OldPasswordField.Value = oldPassword; NewPasswordField.Value = newPassword; ConfirmPasswordField.Value = confirmPassword; UpdateButton.ClickNoWait(); }
private void InstalledModsList_SelectedIndexChanged(object sender, EventArgs e) { UpdateButton.Show(); Delete.Show(); CheckButton.Show(); ModVer.Show(); try { trycatchtext(SelectedModText, "Selected Mod: " + DownloadableModsList.SelectedItems[0].Text); trycatchtext(ModInfo, DownloadableModsList.SelectedItems[0].SubItems[3].Text); impModID = DownloadableModsList.SelectedItems[0].SubItems[4].Text; } catch (Exception exception) { //sike lmao } try { impModID = InstalledModsList.SelectedItems[0].SubItems[4].Text; SelectedModText.Text = "Selected Mod: " + InstalledModsList.SelectedItems[0].Text; ModInfo.Text = InstalledModsList.SelectedItems[0].SubItems[3].Text; ModVer.Text = "Current Ver: " + InstalledModsList.SelectedItems[0].SubItems[1].Text + ", Online Version: " + ModParsing .GetSpecificMod(InstalledModsList.SelectedItems[0].SubItems[4].Text).Version; } catch { } }
public void EditPaymentPlan(String PaymentPlanType) { PaymentPlanLink.Click(); new SelectElement(PaymentPlanSelect).SelectByText(PaymentPlanType); InputComments(); UpdateButton.Click(); }
public override void Entry(IModHelper helper) { this.config = this.Helper.ReadConfig <ModUpdateMenuConfig>(); this.button = new UpdateButton(helper); this.menu = new UpdateMenu(); GameEvents.UpdateTick += this.GameEvents_UpdateTick; GraphicsEvents.OnPostRenderEvent += this.GraphicsEvents_OnPostRenderHudEvent; InputEvents.ButtonPressed += this.InputEvents_ButtonPressed; new Thread(() => { IUpdateStatusRetriever statusRetriever = new UpdateStatusRetriever(this.Helper); int attempts = 50; while (true) { Thread.Sleep(1000); try { if (statusRetriever.GetUpdateStatuses(out IList <ModStatus> statuses)) { if (this.currentStatuses != null && this.currentStatuses.Count == statuses.Count) { this.Notify(statuses); try { this.NotifySMAPI(statusRetriever.GetSMAPIUpdateVersion()); } catch { this.NotifySMAPI(null); } break; } else { this.currentStatuses = statuses; } } attempts--; if (attempts == 0) { throw new Exception("All update attempts failed."); } } catch (Exception e) { this.Monitor.Log("Failed retrieving update info from SMAPI: ", LogLevel.Debug); this.Monitor.Log(e.ToString(), LogLevel.Debug); this.Notify(null); this.NotifySMAPI(null); break; } } }).Start(); }
private void DownloadableModsList_SelectedIndexChanged(object sender, EventArgs e) { InstallButton.Show(); CheckButton.Show(); UpdateButton.Hide(); ModVer.Hide(); Delete.Hide(); DisEnaButton.Hide(); try { trycatchtext(SelectedModText, "Selected Mod: " + DownloadableModsList.SelectedItems[0].Text); trycatchtext(ModInfo, DownloadableModsList.SelectedItems[0].SubItems[3].Text); impModID = new string[DownloadableModsList.SelectedItems.Count]; for (int i = 0; i < DownloadableModsList.SelectedItems.Count; i++) { impModID[i] = DownloadableModsList.SelectedItems[i].SubItems[4].Text; } } catch { // ignored } }
//Update Certification on the Profile page public void UpdateCertificationOnProfile(string expectedCertificate, string from, int year) { IList <IWebElement> rows = driver.WaitForListOfElements(By.XPath("(//table[@class='ui fixed table'])[4]//tbody/tr/td[1]")); for (int rnum = 1; rnum <= rows.Count; rnum++) { string certificate = null; certificate = (driver.WaitForElement(By.XPath("(//table[@class='ui fixed table'])[4]//tbody[" + rnum + "]/tr/td[1]"))).Text; if (certificate == expectedCertificate) { //Click on Update icon to update the record driver.WaitForElement(By.XPath("(//table[@class='ui fixed table'])[4]//tbody[" + rnum + "]/tr/td[4]/span[1]/i[@class='outline write icon']")).Click(); //Update Certified From CertifiedFromTextBox.Clear(); CertifiedFromTextBox.SendKeys(from); //Update Certified Year string stringYear = year.ToString(); SelectElement selectCertifiedYear = new SelectElement(CertifiedYear); selectCertifiedYear.SelectByValue(stringYear); //Click on Update button to update From and Year of certificate UpdateButton.Click(); break; } } }
public CategorySetupUi() { InitializeComponent(); UpdateButton.Hide(); dataTable = category.ShowAllCategory(); categoryShowDataGridView.DataSource = dataTable; }
private void UpdateTimer_Tick(object sender, EventArgs e) { if (TimerCheck.Checked) { UpdateButton.PerformClick(); } }
public void AddForecast(string temp, string summary) { AddForecastButton.ClickExtension(Js); TempInput.ClickClearAndSendKeys(temp); SummaryInput.ClickClearAndSendKeys(summary); UpdateButton.ClickExtension(Js); }
//Update Company private void UpdateButton_Click(object sender, EventArgs e) { companny.Name = nameTextBox.Text; bool verify = companyManagement.IsVerified(companny); if (verify) { categoryErrorLabel.Text = "*Field Must Not Be Empty!!!!"; return; } bool isExist = companyManagement.IsExisted(companny); if (isExist) { categoryErrorLabel.Text = "*This Company Already Existed!!"; return; } bool isUpdate = companyManagement.IsUpdated(companny); if (isUpdate) { MessageBox.Show("Update Successfully!!"); categoryErrorLabel.Text = ""; nameTextBox.Clear(); UpdateButton.Hide(); SaveButton.Show(); DataTable dt = new DataTable(); dt = companyRepository.AddCompany(); companyDataGridView.DataSource = dt; } }
private void UpMan_UpdateFailed(object sender, EventArgs e) { PushLog("Update failed :" + UpMan.GetLastError()); UpdateButton.BeginInvoke(new Action(() => UpdateButton.Enabled = true)); LaunchButton.BeginInvoke(new Action(() => LaunchButton.Enabled = false)); }
private void EnterKeyPressed(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { e.Handled = true; UpdateButton.PerformClick(); } }
private void CheckVerPopup() { if (VersionFromServer != Util.GetVersion() && VersionFromServer != "" && VersionFromServer != null) { UpdateButton.Text = "Version " + VersionFromServer + " is now available! Click here to download."; UpdateButton.Show(); } }
//Show Item TextBox on DoubleClick private void companyDataGridView_MouseDoubleClick(object sender, MouseEventArgs e) { nameTextBox.Text = companyDataGridView.CurrentRow.Cells[0].Value.ToString(); companny.OldName = nameTextBox.Text; UpdateButton.Show(); UpdateButton.Location = new Point(369, 86); SaveButton.Hide(); }
public bool ExpandAutomatedBHCCatalogSectionAndSelectSingleIdentity(out string selectedIdentity) { //Expand Auto BHC Section AutomatedBhcCatalogProcessingRules.Click(); selectedIdentity = SelectIdentity(); UpdateButton.Click(); return(string.Equals(ConfirmationLabel.Text.Trim(), "Buyer Catalog details saved successfully.")); }
private void UpMan_UpdateComplete(object sender, EventArgs e) { PushLog("Update Completed"); PushLog("Elapsed time :" + string.Format("{0:hh\\:mm\\:ss}", (DateTime.Now - UpdateStartTime))); PushLog("Valid install detected, Launch when ready"); UpdateButton.BeginInvoke(new Action(() => UpdateButton.Enabled = true)); LaunchButton.BeginInvoke(new Action(() => LaunchButton.Enabled = true)); }
public void EditProductInformation(String newQuantity) { ProductLink.Click(); ExistingQuantityField.Clear(); ExistingQuantityField.SendKeys(newQuantity); InputComments(); UpdateButton.Click(); }
public void EditNextDelivery() { NextDeliveryLink.Click(); ((IJavaScriptExecutor)Driver.WebDriver).ExecuteScript("arguments[0].scrollIntoView(true);", NextShipAsapButton); NextShipAsapButton.Click(); InputComments(); UpdateButton.Click(); }
private void SetBindings() { MainGrid.SetBinding(BackgroundProperty, new Binding("CurrentBackground")); SetGridBindings(DetailsGrid); SetGridBindings(ActionsGrid); SetGridBindings(SettingsGrid); UpdateButton.SetBinding(ForegroundProperty, new Binding("CurrentForeground")); StopButton.SetBinding(ForegroundProperty, new Binding("CurrentForeground")); }
/// <summary> /// Enters the old password, new password and confirmation password on the update password form. /// </summary> /// <param name="oldPassword">The users old password.</param> /// <param name="newPassword">The users new password.</param> /// <param name="confirmPassword">The users new password.</param> public void UpdatePassword(string oldPassword, string newPassword, string confirmPassword) { OldPasswordField.Value = oldPassword; NewPasswordField.Value = newPassword; ConfirmPasswordField.Value = confirmPassword; UpdateButton.ClickNoWait(); System.Threading.Thread.Sleep(1000); IEInstance.GoTo(SiteUrl); }
private void Login3(object sender, EventArgs e) { DoubleAnimation a = new DoubleAnimation(176, TimeSpan.FromMilliseconds(500)); UpdateButton.BeginAnimation(WidthProperty, a); DoubleAnimation a1 = new DoubleAnimation(64, TimeSpan.FromMilliseconds(500)); UpdateButton.BeginAnimation(HeightProperty, a1); }
void ReleaseDesignerOutlets() { if (AddButton != null) { AddButton.Dispose(); AddButton = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (ColumnComboBox != null) { ColumnComboBox.Dispose(); ColumnComboBox = null; } if (FilterTableView != null) { FilterTableView.Dispose(); FilterTableView = null; } if (OperatorComboBox != null) { OperatorComboBox.Dispose(); OperatorComboBox = null; } if (RemoveButton != null) { RemoveButton.Dispose(); RemoveButton = null; } if (ValueTextField != null) { ValueTextField.Dispose(); ValueTextField = null; } if (UpdateButton != null) { UpdateButton.Dispose(); UpdateButton = null; } }
public void ClearAllProducts() { IList <IWebElement> newList = Driver.WebDriver.FindElements(By.CssSelector("input[type='checkbox']")); for (int i = 0; i < newList.Count; i++) { newList[i].Click(); } UpdateButton.Click(); }
/********* ** Public methods *********/ /// <summary>The mod entry point, called after the mod is first loaded.</summary> /// <param name="helper">Provides simplified APIs for writing mods.</param> public override void Entry(IModHelper helper) { this.config = this.Helper.ReadConfig <ModConfig>(); this.button = new UpdateButton(helper); helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; helper.Events.GameLoop.UpdateTicked += this.OnUpdateTicked; helper.Events.Display.Rendered += this.OnRendered; helper.Events.Input.ButtonPressed += this.OnButtonPressed; }
private void categoryShowDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { updateRowIndex = e.RowIndex; DataGridViewRow row = categoryShowDataGridView.Rows[updateRowIndex]; categoryNameTextBox.Text = row.Cells[1].Value.ToString(); CategorySaveButton.Hide(); UpdateButton.Show(); }
public void UpdateSettings(bool ifLastStep = false) { UpdateButton.Click(); if (ifLastStep) { BrowserWait() .Until(ExpectedConditions.ElementToBeClickable( By.Id("AdminMaster_ContentPlaceHolderBody_btnDone"))); } }