zoukankan      html  css  js  c++  java
  • [原] XAF How to see and edit the time part in the DatePropertyEditor for the System.DateTime property

    http://www.devexpress.com/Support/Center/Example/Details/E1497
    using
    System; using DevExpress.ExpressApp.Model; using DevExpress.ExpressApp.Editors; using DevExpress.ExpressApp.Win.Editors; namespace WinSolution.Module.Win { [PropertyEditor(typeof(DateTime))] public class MyDatePropertyEditor : DatePropertyEditor { public MyDatePropertyEditor(Type objectType, IModelMemberViewItem item) : base(objectType, item) { } protected override void SetupRepositoryItem(DevExpress.XtraEditors.Repository.RepositoryItem item) { base.SetupRepositoryItem(item); RepositoryItemDateTimeEdit defaultItem = (RepositoryItemDateTimeEdit)item; defaultItem.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True; defaultItem.VistaEditTime = DevExpress.Utils.DefaultBoolean.True; } } }

     

    欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/

  • 相关阅读:
    三数之和
    167
    二分搜索树
    687
    索引堆
    二分查找 leetcode704
    leetcode 56合并区间 java
    leetcode 1046
    堆的数据结构java
    leetcode 493
  • 原文地址:https://www.cnblogs.com/Tonyyang/p/3025479.html
Copyright © 2011-2022 走看看