Ejemplo n.º 1
0
 private void treeList1_FocusedColumnChanged(object sender, DevExpress.XtraTreeList.FocusedColumnChangedEventArgs e)
 {
     DevExpress.XtraEditors.Repository.RepositoryItemTextEdit edit = e.Column.ColumnEdit as DevExpress.XtraEditors.Repository.RepositoryItemTextEdit;
     if (edit != null && edit.Mask.MaskType == DevExpress.XtraEditors.Mask.MaskType.Numeric)
     {
         oldInput = InputLanguage.CurrentInputLanguage;
         InputLanguage.CurrentInputLanguage = null;
     }
     else
     {
         if (oldInput != null && oldInput != InputLanguage.CurrentInputLanguage)
         {
             InputLanguage.CurrentInputLanguage = oldInput;
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 聚焦的列变更事件
 /// </summary>
 private void treeListDocTemp_FocusedColumnChanged(object sender, DevExpress.XtraTreeList.FocusedColumnChangedEventArgs e)
 {
     try
     {
         if (e.OldColumn != null)
         {
             if (treeColDocVersion.OptionsColumn.AllowEdit && !lockChange)
             {
                 SetEditState(false);
             }
         }
     }
     catch (Exception ex)
     {
         //ExceptionHandler.HandleException(this.Text + "--聚焦的列变更事件错误。", ex);
         ExceptionHandler.HandleException(this.Text + "--" + tsmiJjdlbg.Text, ex);
     }
 }
Ejemplo n.º 3
0
 private void treeList1_FocusedColumnChanged(object sender, DevExpress.XtraTreeList.FocusedColumnChangedEventArgs e)
 {
     treeList1_FocusedNodeChanged(this.treeList1, null);
 }