コード例 #1
0
ファイル: KZMessage.cs プロジェクト: konzuk/KZ
 public IKZMessage CreateMessage(IControllerBase controller, IModelBase model)
 {
     return new KZMessage
     {
         Controller = controller,
         Model = model
     };
 }
コード例 #2
0
ファイル: AddEditLoadJournalWDC.cs プロジェクト: konzuk/KZ
        private void OnSelectionChangeAction(IModelBase modelBase)
        {
            var readOnlyDCInfo = modelBase.Id != 0;

            this.textEditName.Properties.ReadOnly = readOnlyDCInfo;
            this.dateEditDateTimeDOB.Properties.ReadOnly = readOnlyDCInfo;
            this.textEditAddress.Properties.ReadOnly = readOnlyDCInfo;
            this.textEditVI.Properties.ReadOnly = readOnlyDCInfo;
            this.textEditCOM.Properties.ReadOnly = readOnlyDCInfo;
            this.textEditDIS.Properties.ReadOnly = readOnlyDCInfo;
            this.textEditPRO.Properties.ReadOnly = readOnlyDCInfo;
            this.textEditPOB.Properties.ReadOnly = readOnlyDCInfo;
            this.customGridLookUpEditGender.Properties.ReadOnly = readOnlyDCInfo;
            this.customGridLookUpEditNAT.Properties.ReadOnly = readOnlyDCInfo;
            this.customGridLookUpEditCIT.Properties.ReadOnly = readOnlyDCInfo;
            

        }
コード例 #3
0
 /// <summary>
 ///  创建ChildrenModel对象
 /// </summary>
 /// <param name="value">模型对象</param>
 public ChildrenModel(IModelBase value)
 {
     model = value;
 }
コード例 #4
0
 public int CompareTo(IModelBase other)
 {
     return(Item.CompareTo(other));
 }
コード例 #5
0
 public bool Equals(IModelBase other)
 {
     return(Id.Equals(other.Id));
 }
コード例 #6
0
 public int CompareTo(IModelBase other)
 {
     return(Id.CompareTo(other.Id));
 }
コード例 #7
0
ファイル: BaseAdapter.cs プロジェクト: pomerwe/Estoque
 public abstract void RemoveFromContent(IModelBase model);
コード例 #8
0
 public int CompareTo(IModelBase other)
 {
     return 0;
 }
コード例 #9
0
 /// <summary>
 /// Registers the new model in pool.
 /// </summary>
 /// <param name="model">The model.</param>
 public static void RegisterNewModelInPool(IModelBase model)
 {
     modelPool.Add(model);
 }
コード例 #10
0
 public int CompareTo(IModelBase other)
 {
     return(0);
 }
コード例 #11
0
ファイル: ModelMapper.cs プロジェクト: kiquenet/B4F
 public static bool Update(IDalSession session, IModelBase obj)
 {
     return session.InsertOrUpdate(obj);
 }
コード例 #12
0
 public bool Equals(IModelBase other)
 {
     return Id.Equals(other.Id);
 }
コード例 #13
0
 public int CompareTo(IModelBase other)
 {
     return Id.CompareTo(other.Id);
 }
コード例 #14
0
 public void SetEntity(Direction direction, IModelBase modelBase)
 {
     _naighborDictionarys.Add(direction, modelBase);
 }
コード例 #15
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="model">Model</param>
 protected DialogViewModelBase(IModelBase model)
     : base(model)
 {
     this.Title = string.Empty;
 }
コード例 #16
0
 public AgentContext(IgnitionControllerContext controllerContext, ISitecoreContext sitecoreContext, IPage contextPage, IModelBase datasourceItem, object agentParameters = null)
     : base(controllerContext, sitecoreContext)
 {
     DatasourceItem  = datasourceItem ?? new NullModel();
     AgentParameters = agentParameters;
     ContextPage     = contextPage ?? new NullPage();
 }
コード例 #17
0
 /// <summary>
 /// Registers the new model in pool.
 /// </summary>
 /// <param name="model">The model.</param>
 public static void RegisterNewModelInPool(IModelBase model)
 {
     modelPool.Add(model);
 }
コード例 #18
0
 public bool Equals(IModelBase other)
 {
     return(other == null || other.Id == Guid.Empty);
 }
コード例 #19
0
        //public int CompareTo(IModelBase other)
        //{
        //	return Item.CompareTo(other);
        //}

        public bool Equals(IModelBase other)
        {
            return(Item.Equals(other));
        }
コード例 #20
0
 public static void initializeConnection(IModelBase model)
 {
 }
コード例 #21
0
 public bool Equals(IModelBase other)
 {
     return other == null || other.Id == Guid.Empty;
 }
コード例 #22
0
ファイル: ParentModel.cs プロジェクト: lxy-kyb/TraceSystemWPF
 /// <summary>
 /// 创建ParentModel对象
 /// </summary>
 /// <param name="value">模型对象</param>
 public ParentModel(IModelBase value)
 {
     model = value;
 }