Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 /// <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);
 }
Exemple #4
0
 /// <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);
 }
Exemple #5
0
 /// <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);
 }
Exemple #6
0
 /// <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));
 }
Exemple #7
0
 /// <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);
 }
Exemple #8
0
 /// <summary>
 /// Hides a control
 /// </summary>
 /// <param name="val">True to hide, false to show</param>
 public void SafeHide(bool val)
 {
     AsyncControls.SafeHide(this, val);
 }
Exemple #9
0
 /// <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);
 }
Exemple #10
0
 /// <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);
 }
Exemple #11
0
 /// <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);
 }
Exemple #12
0
 /// <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);
 }
Exemple #13
0
 /// <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);
 }