public AddAdminForm(string formname, int id_n) { InitializeComponent(); this.Text = formname; if (formname == "Dodawanie Administratora") { IDLabel.Hide(); choice = 1; } if (formname == "Edycja danych Administratora") { id = id_n; choice = 2; UpdateData(); } if (formname == "Wyświetlanie danych Administratora") { id = id_n; choice = 3; UpdateData(); LoginBox.Enabled = false; PasswordBox.Enabled = false; TypeBox.Enabled = false; OKButton.Hide(); ApplyButton.Hide(); CancelButton.Text = "OK"; } }
void ReleaseDesignerOutlets() { if (ZoneName != null) { ZoneName.Dispose(); ZoneName = null; } if (ZoneTypeOptions != null) { ZoneTypeOptions.Dispose(); ZoneTypeOptions = null; } if (ApplyButton != null) { ApplyButton.Dispose(); ApplyButton = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } }
public override string GetToolInfo() { if (!IsSelectedSource) { var mouse = NodeMarkupTool.MousePositionScaled; if (TurnLeftButton.CheckHover(mouse)) { return(Localize.Tool_InfoTurnСounterClockwise); } else if (FlipButton.CheckHover(mouse)) { return(Localize.Tool_InfoInverseOrder); } else if (TurnRightButton.CheckHover(mouse)) { return(Localize.Tool_InfoTurnClockwise); } else if (ApplyButton.CheckHover(mouse)) { return(Localize.Tool_InfoPasteApply); } else if (NotApplyButton.CheckHover(mouse)) { return(Localize.Tool_infoPasteNotApply); } else if (ResetButton.CheckHover(mouse)) { return(Localize.Tool_InfoPasteReset); } } return(base.GetToolInfo()); }
void ReleaseDesignerOutlets() { if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (LdapAttributesTableView != null) { LdapAttributesTableView.Dispose(); LdapAttributesTableView = null; } if (ManageAttributesButton != null) { ManageAttributesButton.Dispose(); ManageAttributesButton = null; } if (OKButton != null) { OKButton.Dispose(); OKButton = null; } if (ApplyButton != null) { ApplyButton.Dispose(); ApplyButton = null; } }
void ReleaseDesignerOutlets() { if (ApplyButton != null) { ApplyButton.Dispose(); ApplyButton = null; } if (Backbutton != null) { Backbutton.Dispose(); Backbutton = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (StyleName != null) { StyleName.Dispose(); StyleName = null; } if (TypeDropdown != null) { TypeDropdown.Dispose(); TypeDropdown = null; } }
private void DatabaseCMLTrainAndPredictWindow_Loaded(object sender, RoutedEventArgs e) { GetDatabases(DatabaseHandler.DatabaseName); GetAnnotators(); GetRoles(); GetSchemes(); parseFiles(); GetSessions(); ApplyButton.Focus(); Update(); }
/// <summary> /// /// </summary> public void ApplyChanges() { bl_InputData.Instance.SaveMappedInstance(); if (ApplyButton != null) { ApplyButton.SetActive(false); } if (RevertButton != null) { RevertButton.SetActive(false); } }
private void Box_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Enter: Apply(); e.SuppressKeyPress = true; break; case Keys.Escape: Varor.Select(); if (Varor.Items.Count > 0 && Varor.SelectedItems.Count <= 0) { Varor.Items[0].Selected = true; } e.SuppressKeyPress = true; break; case Keys.Up: case Keys.Down: for (int i = 0; i < textBoxes.Length; i++) { if (textBoxes[i].Focused) { if (e.KeyCode == Keys.Up) { if (i != 0) { textBoxes[i - 1].Focus(); } else { ApplyButton.Focus(); } } else { if (i != 2) { textBoxes[i + 1].Focus(); } else { BrowseButton.Focus(); } } break; } } break; } }
public override void Draw(SpriteBatch spriteBatch) { base.Draw(spriteBatch); SoundText.Draw(spriteBatch); DifficultyText.Draw(spriteBatch); MuteCheckbox.Draw(spriteBatch); DifficultiesRadioGroup.Draw(spriteBatch); ApplyButton.Draw(spriteBatch); CancelButton.Draw(spriteBatch); }
/// <summary> /// /// </summary> void OnDetect() { currentFetchInput.OnChanged(pendingButton); isFetchingKey = false; if (ApplyButton != null) { ApplyButton.SetActive(true); } if (RevertButton != null) { RevertButton.SetActive(true); } }
void ReleaseDesignerOutlets() { if (AddAllButton != null) { AddAllButton.Dispose(); AddAllButton = null; } if (AddButton != null) { AddButton.Dispose(); AddButton = null; } if (ApplyButton != null) { ApplyButton.Dispose(); ApplyButton = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (RemoveAllButton != null) { RemoveAllButton.Dispose(); RemoveAllButton = null; } if (RemoveButton != null) { RemoveButton.Dispose(); RemoveButton = null; } if (NewAttributesList != null) { NewAttributesList.Dispose(); NewAttributesList = null; } if (ExistingAttributesList != null) { ExistingAttributesList.Dispose(); ExistingAttributesList = null; } }
protected override void Render(Writer writer) { writer.AddAttribute("class", "FilterBoxDiv"); writer.RenderBeginTag("div"); if (!string.IsNullOrWhiteSpace(ID)) { writer.AddAttribute("id", UniqueID); } foreach (string key in Style.Keys) { writer.AddStyleAttribute(key, Style[key]); } if (!string.IsNullOrEmpty(CssClass)) { writer.AddAttribute("class", CssClass); } writer.RenderBeginTag("details"); if (ActiveStyle != null && Active) { writer.AddAttribute("class", ActiveStyle.CssClass); } writer.RenderBeginTag("summary"); writer.RenderEndTag(); writer.RenderBeginTag("div"); LiveFilterBox.Attributes.Add("onkeyup", string.Format("keyup_handlerFilterControl2(this,'{0}')", CheckBoxList.ClientID)); LiveFilterBox.Attributes.Add("placeholder", " поиск "); LiveFilterBox.RenderControl(writer); writer.AddAttribute("class", "FilterboxTable"); CheckBoxList.RenderControl(writer); writer.RenderEndTag(); writer.AddAttribute("class", "ApplyPanel"); writer.RenderBeginTag("div"); ApplyButton.RenderControl(writer); CancelButton.RenderControl(writer); writer.RenderEndTag(); writer.RenderEndTag(); writer.RenderEndTag(); }
public EditPlaceForm(MySqlDataReader rdr, string formname) { InitializeComponent(); this.Text = formname; if (formname == "Wyświetl dane miejsca") { OKButton.Hide(); ApplyButton.Hide(); CancelButton.Text = "OK"; PlaceNameBox.Enabled = false; } id = rdr.GetInt16(0); name = rdr.GetString(1); PlaceNameBox.Text = name; IDLabel.Text += " " + id; rdr.Close(); }
public ViewJob() { InitializeComponent(); SqlConnection con = new SqlConnection(@"Data Source=OLA\SQLSERVER;Initial Catalog=ApplicantTrackingSystem;Integrated Security=True;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False"); con.Open(); SqlCommand cmd = new SqlCommand("Select * from [Application] where CandidateUsername=@Username and JobID=@ID", con); cmd.Parameters.AddWithValue("@Username", UserLogin.LocalUsername); cmd.Parameters.AddWithValue("@ID", CandidateHome.LocalJobID); SqlDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { ApplyButton.Hide(); } con.Close(); }
public override void OnToolGUI(Event e) { var uiView = UIView.GetAView(); var screenPos = uiView.WorldPointToGUI(Camera.main, Centre) * uiView.inputScale; TurnLeftButton.Update(screenPos); FlipButton.Update(screenPos); TurnRightButton.Update(screenPos); ApplyButton.Update(screenPos); NotApplyButton.Update(screenPos); ResetButton.Update(screenPos); TurnLeftButton.OnGUI(e); FlipButton.OnGUI(e); TurnRightButton.OnGUI(e); ApplyButton.OnGUI(e); NotApplyButton.OnGUI(e); ResetButton.OnGUI(e); }
private void Window_Loaded(object sender, RoutedEventArgs e) { switchMode(); GetDatabases(DatabaseHandler.DatabaseName); if (mode == Mode.COMPLETE) { AnnoList annoList = AnnoTierStatic.Selected.AnnoList; DatabaseScheme scheme = ((List <DatabaseScheme>)SchemesBox.ItemsSource).Find(s => s.Name == annoList.Scheme.Name); if (scheme != null) { SchemesBox.SelectedItem = scheme; SchemesBox.ScrollIntoView(scheme); } DatabaseRole role = ((List <DatabaseRole>)RolesBox.ItemsSource).Find(r => r.Name == annoList.Meta.Role); if (role != null) { RolesBox.SelectedItem = role; RolesBox.ScrollIntoView(role); } DatabaseAnnotator annotator = ((List <DatabaseAnnotator>)AnnotatorsBox.ItemsSource).Find(a => a.Name == Properties.Settings.Default.MongoDBUser); if (annotator != null) { AnnotatorsBox.SelectedItem = annotator; AnnotatorsBox.ScrollIntoView(annotator); } DatabaseSession session = ((List <DatabaseSession>)SessionsBox.ItemsSource).Find(s => s.Name == DatabaseHandler.SessionName); if (session != null) { SessionsBox.SelectedItem = session; SessionsBox.ScrollIntoView(session); } Update(); } ApplyButton.Focus(); handleSelectionChanged = true; }
public override void OnToolGUI(Event e) { var uiView = UIView.GetAView(); var position = Centre + Tool.CameraDirection * (Radius + (Baskets.Length == 0 ? 1f : 3f) * TargetEnter.Size); var screenPos = uiView.WorldPointToGUI(Camera.main, position) * uiView.inputScale; TurnLeftButton.Update(screenPos); FlipButton.Update(screenPos); TurnRightButton.Update(screenPos); ApplyButton.Update(screenPos); NotApplyButton.Update(screenPos); ResetButton.Update(screenPos); TurnLeftButton.OnGUI(e); FlipButton.OnGUI(e); TurnRightButton.OnGUI(e); ApplyButton.OnGUI(e); NotApplyButton.OnGUI(e); ResetButton.OnGUI(e); }
public override void OnPrimaryMouseClicked(Event e) { base.OnPrimaryMouseClicked(e); if (IsHoverSource && HoverSource.Target is TargetEnter) { Tool.SetMode(ToolModeType.PointsOrder); } else { var mouse = NodeMarkupTool.MousePositionScaled; TurnLeftButton.CheckClick(mouse); FlipButton.CheckClick(mouse); TurnRightButton.CheckClick(mouse); ApplyButton.CheckClick(mouse); NotApplyButton.CheckClick(mouse); ResetButton.CheckClick(mouse); } }
public AddECostForm(int id, string n, string formname) { InitializeComponent(); id_user = id; login = n; this.Text = formname; if (formname == "Dodawanie kosztu dodatkowego") { NoRButton.Checked = true; paid = false; IDComboBox.Hide(); IDLabel.Hide(); PayInfo(id); DateCheckBox.Checked = true; choice = 1; } else if (formname == "Wyświetlanie kosztów dodatkowych") { UpdateData(id); DescriptionBox.Enabled = false; MoneyBox.Enabled = false; DateBox.Enabled = false; YesRButton.Enabled = false; NoRButton.Enabled = false; ApplyButton.Hide(); OKButton.Hide(); CancelButton.Text = "OK"; DateCheckBox.Hide(); DateBox.Format = DateTimePickerFormat.Custom; DateBox.CustomFormat = "dd.MM.yyyy HH:mm"; choice = 2; } else if (formname == "Edycja kosztów dodatkowych") { UpdateData(id); ApplyButton.Text = "Zastosuj zmiany"; now = false; DateCheckBox.Checked = false; choice = 3; } }
public async void Action() { try { ApplyButton.Enabled = false; Model.Update(); File.Copy(FromPath, ToPath, true); File.Copy(FromPath.Replace(".dll", ".pdb"), ToPath.Replace(".dll", ".pdb"), true); await Task.Delay(100); ApplyButton.BackColor = Color.LightGreen; Model.Update(); await Task.Delay(200); } finally { ApplyButton.ResetBackColor(); ApplyButton.Enabled = true; Model.Update(); } }
public Frame() { int w = 300, h = 105; Icon icon = new Icon("../../content/orc_icon.ico"); this.Icon = icon; this.SetBounds(0, 0, w, h); this.Text = "NKT - Time Changer"; this.MaximizeBox = false; this.MinimizeBox = false; this.FormBorderStyle = FormBorderStyle.FixedDialog; uint[] keys = { 0x70, 0x71, 0x72, 0x73, 0x74, 0x75 }; string[] keyNames = { "F1", "F2", "F3", "F4", "F5", "F6" }; ComboBox keySelection = new ComboBox(); keySelection.Text = "Select bound key"; keySelection.Parent = this; keySelection.SetBounds(5, 5, w - 25, 25); for (int i = 0; i < keys.Length; i++) { keySelection.Items.Add("CTRL + " + keyNames[i]); } ApplyButton apply = new ApplyButton(() => { if (keySelection.SelectedIndex != -1) { ChangeBind(this.Handle, keys[keySelection.SelectedIndex]); } }); apply.Text = "Apply"; apply.Parent = this; apply.SetBounds(5, 35, w - 25, 25); RegisterHotKey(this.Handle, 0, 0x0002, keys[0]); }
private void ClickGDIControl_ClickApplyButton_HandleOverrideDialog() { Button ApplyButton; Point pointX; int track = 353; do { //scheduling window doesn't contain named controls, so mouse clicks pointX = new Point(track, 606); windowTools.MouseDoubleClickPoint(window, pointX); ApplyButton = windowTools.GetButton(window, "Apply Changes"); track += 8; } while (!ApplyButton.Enabled); ApplyButton.DoubleClick(); int winCount = application.GetWindows().Count; var dialogBox = windowTools.GetFirstDescendant(AutomationElement.RootElement, (e) => e.Name == "CBI" && e.ClassName == "#32770"); if (dialogBox != null) { var button = windowTools.GetFirstDescendant(dialogBox, (e) => e.Name.Contains("Yes") && e.ClassName.Contains("Button")); Assert.IsNotNull(button); var caption = windowTools.GetFirstDescendant(dialogBox, (e) => e.Name.Contains("Do you wish to attempt to override availability")); ((InvokePattern)button.GetCurrentPattern(InvokePattern.Pattern)).Invoke(); } }
/// <summary> /// /// </summary> IEnumerator Start() { keyCodeList = Enum.GetValues(typeof(KeyCode)); KeyBindingTemplate.SetActive(false); if (ApplyButton != null) { ApplyButton.SetActive(false); } if (RevertButton != null) { RevertButton.SetActive(false); } while (!bl_GameData.isDataCached) { yield return(null); } if (!initialized) { InstanceKeys(); } }
public PaymentForm(int id, string n, string f1) { InitializeComponent(); login = n; id_user = id; ToDateForm.Value = DateTime.Now; to_date = ToDateForm.Value; TimeSpan ts = new TimeSpan(30, 0, 0, 0, 0); from_date = to_date - ts; FromDateBox.Value = from_date; UserLogin.Text += login; this.Text = f1; form_name = f1; if (form_name == "Wyświetlanie płatności") { DataBox.ReadOnly = true; OKButton.Hide(); ApplyButton.Hide(); CancelButton.Text = "OK"; } //UpdateData(); }
public ApplicationCompletePage SubmitApplication() { ApplyButton.Click(); return(new ApplicationCompletePage(Driver)); }
protected override void Awake() { ApplyButton = CreateGameObject.CreateChildGameObject <ApplyButton>(transform).GetComponent <ApplyButton>(); ApplyButton.onClick.AddListener(OnApplyButtonClick); base.Awake(); }
private void ViewModel_PreRequestClose(object sender, EventArgs e) { // Get focus from ListViewEditItem, to trigger LostFocus data binding ApplyButton.Focus(); }
/// <summary> /// Make a shadow copy of the element at the current state which stays available even the element is gone. /// </summary> /// <returns>A shadow copy of the current element.</returns> public new BasicFontPickerDialogData GetDataCopy() { var data = new BasicFontPickerDialogData(); FillData(data); data.FontNameSection = GetSafeData(() => { if (FontNameSection == null) { return(null); } return(FontNameSection.GetDataCopy()); }); data.FontNameTextBox = GetSafeData(() => { if (FontNameTextBox == null) { return(null); } return(FontNameTextBox.GetDataCopy()); }); data.FontNameList = GetSafeData(() => { if (FontNameList == null) { return(null); } return(FontNameList.GetDataCopy()); }); data.FontStyleSection = GetSafeData(() => { if (FontStyleSection == null) { return(null); } return(FontStyleSection.GetDataCopy()); }); data.FontStyleTextBox = GetSafeData(() => { if (FontStyleTextBox == null) { return(null); } return(FontStyleTextBox.GetDataCopy()); }); data.FontStyleList = GetSafeData(() => { if (FontStyleList == null) { return(null); } return(FontStyleList.GetDataCopy()); }); data.FontSizeSection = GetSafeData(() => { if (FontSizeSection == null) { return(null); } return(FontSizeSection.GetDataCopy()); }); data.FontSizeTextBox = GetSafeData(() => { if (FontSizeTextBox == null) { return(null); } return(FontSizeTextBox.GetDataCopy()); }); data.FontSizeList = GetSafeData(() => { if (FontSizeList == null) { return(null); } return(FontSizeList.GetDataCopy()); }); data.LineThroughCheckBox = GetSafeData(() => { if (LineThroughCheckBox == null) { return(null); } return(LineThroughCheckBox.GetDataCopy()); }); data.UnderlineCheckBox = GetSafeData(() => { if (UnderlineCheckBox == null) { return(null); } return(UnderlineCheckBox.GetDataCopy()); }); data.FontColorComboBox = GetSafeData(() => { if (FontColorComboBox == null) { return(null); } return(FontColorComboBox.GetDataCopy()); }); data.ScriptComboBox = GetSafeData(() => { if (ScriptComboBox == null) { return(null); } return(ScriptComboBox.GetDataCopy()); }); data.OKButton = GetSafeData(() => { if (OKButton == null) { return(null); } return(OKButton.GetDataCopy()); }); data.CancelButton = GetSafeData(() => { if (CancelButton == null) { return(null); } return(CancelButton.GetDataCopy()); }); data.ApplyButton = GetSafeData(() => { if (ApplyButton == null) { return(null); } return(ApplyButton.GetDataCopy()); }); data.HelpButton = GetSafeData(() => { if (HelpButton == null) { return(null); } return(HelpButton.GetDataCopy()); }); return(data); }
void ReleaseDesignerOutlets() { if (AfflictionsTab != null) { AfflictionsTab.Dispose(); AfflictionsTab = null; } if (ApplyButton != null) { ApplyButton.Dispose(); ApplyButton = null; } if (BottomView != null) { BottomView.Dispose(); BottomView = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (ConditionDetailWebView != null) { ConditionDetailWebView.Dispose(); ConditionDetailWebView = null; } if (ConditionsTab != null) { ConditionsTab.Dispose(); ConditionsTab = null; } if (CustomTab != null) { CustomTab.Dispose(); CustomTab = null; } if (DurationLabel != null) { DurationLabel.Dispose(); DurationLabel = null; } if (FavoritesTab != null) { FavoritesTab.Dispose(); FavoritesTab = null; } if (FilterText != null) { FilterText.Dispose(); FilterText = null; } if (SelectionTable != null) { SelectionTable.Dispose(); SelectionTable = null; } if (SpellsTab != null) { SpellsTab.Dispose(); SpellsTab = null; } if (TitleView != null) { TitleView.Dispose(); TitleView = null; } if (TopView != null) { TopView.Dispose(); TopView = null; } }
public void MarkAsDone() { ApplyButton.Click(); }