/// <summary> /// Change the text label of a control /// </summary> /// <param name="control">The control to change</param> /// <param name="val">The new text</param> public void SetControlText(Control control, string val) { AsyncControls.SetControlText(this, control, val); }
/// <summary> /// Changes the toolstrip menu text /// </summary> /// <param name="item">The toolstrip menu item to change</param> /// <param name="val">The new value</param> public void SetToolStripMenuText(ToolStripMenuItem item, string val) { AsyncControls.SetToolStripMenuText(this, item, val); }
/// <summary> /// Selects the row with the given CecKeypress for a datagrid /// </summary> /// <param name="container">The datagrid container</param> /// <param name="dgView">The datagrid</param> /// <param name="key">The key to selected</param> public void SelectKeypressRow(Control container, DataGridView dgView, CecKeypress key) { AsyncControls.SelectKeypressRow(container, dgView, key); }
/// <summary> /// Enable or disable a control /// </summary> /// <param name="control">The control to change</param> /// <param name="val">True to enable, false to disable</param> public void SetControlEnabled(Control control, bool val) { AsyncControls.SetControlEnabled(this, control, val); }
/// <summary> /// Change the selected index /// </summary> /// <param name="control">The control to change</param> /// <param name="index">The new selected index</param> public void SetSelectedIndex(ComboBox control, int index) { AsyncControls.SetSelectedIndex(this, control, index); }
/// <summary> /// Get the name of the selected tab in a TabControl /// </summary> /// <param name="container">The tab container</param> /// <param name="tabPages">The tab pages</param> /// <returns>The name of the selected tab</returns> public string GetSelectedTabName(TabControl container, TabControl.TabPageCollection tabPages) { return(AsyncControls.GetSelectedTabName(container, tabPages)); }
/// <summary> /// Display a new dialog /// </summary> /// <param name="control">The control to display</param> /// <param name="modal">True to make it a modal dialog</param> public void DisplayDialog(Form control, bool modal) { AsyncControls.DisplayDialog(this, control, modal); }
/// <summary> /// Hides a control /// </summary> /// <param name="val">True to hide, false to show</param> public void SafeHide(bool val) { AsyncControls.SafeHide(this, val); }
/// <summary> /// Make a control visible or invisible /// </summary> /// <param name="control">The control to change</param> /// <param name="val">True to make it visible, false to make it invisible</param> public void SetControlVisible(Control control, bool val) { AsyncControls.SetControlVisible(this, control, val); }
/// <summary> /// Replaces the items of a combobox /// </summary> /// <param name="control">The control to change</param> /// <param name="selectedIndex">The new selection index</param> /// <param name="val">The new content</param> public void SetComboBoxItems(ComboBox control, int selectedIndex, object[] val) { AsyncControls.SetComboBoxItems(this, control, selectedIndex, val); }
/// <summary> /// Changes the progress value of a progress bar /// </summary> /// <param name="control">The control to change</param> /// <param name="val">The new percentage</param> public void SetProgressValue(ProgressBar control, int val) { AsyncControls.SetProgressValue(this, control, val); }
/// <summary> /// Change the checked status of an item in a CheckedListBox /// </summary> /// <param name="control">The control to change</param> /// <param name="index">The index of the checkbox in the list to change</param> /// <param name="val">True to change to checked, false to change to unchecked</param> public void SetCheckboxItemChecked(CheckedListBox control, int index, bool val) { AsyncControls.SetCheckboxItemChecked(this, control, index, val); }
/// <summary> /// Change the checked status of a checkbox /// </summary> /// <param name="control">The control to change</param> /// <param name="val">True to change to checked, false to change to unchecked</param> public void SetCheckboxChecked(CheckBox control, bool val) { AsyncControls.SetCheckboxChecked(this, control, val); }