Beispiel #1
0
        /// <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;
            }
        }
Beispiel #2
0
 /// <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);
     }
 }
Beispiel #3
0
 private void TextViewFocused(object o, FocusedArgs args)
 {
     ElementController.SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, true);
 }
 protected void OnFocused(object o, FocusedArgs args)
 {
     this.connectionMysql();
 }
Beispiel #5
0
 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;
 }