/// <summary> /// When the user 'enters' the position combo box, save the current text value for later. /// </summary> private void OnTitleTextBoxEnter(object sender, FocusedArgs e) { TreeIter iter; if (combobox1.GetActiveIter(out iter)) { originalText = (string)combobox1.Model.GetValue(iter, 0); } else { originalText = null; } }
/// <summary> /// When the user 'enters' the position combo box, save the current text value for later. /// </summary> private void OnTitleTextBoxEnter(object sender, FocusedArgs e) { try { TreeIter iter; if (combobox1.GetActiveIter(out iter)) { originalText = (string)combobox1.Model.GetValue(iter, 0); } else { originalText = null; } } catch (Exception err) { ShowError(err); } }
private void TextViewFocused(object o, FocusedArgs args) { ElementController.SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, true); }
protected void OnFocused(object o, FocusedArgs args) { this.connectionMysql(); }
protected void OnTxtSerialDataFocused(object o, FocusedArgs args) { this.txtSerialData.Buffer.PlaceCursor(this.txtSerialData.Buffer.EndIter); }
private void txtName_Focused(object o, FocusedArgs args) { grdMaterials.DisableEdit = true; grdProducts.DisableEdit = true; }