CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
CslaActionExtenderProperties.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CslaActionExtenderProperties.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>no summary</summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla.Windows
11{
12 internal class CslaActionExtenderProperties
13 {
14 #region Defaults
15
16 static internal CslaFormAction ActionTypeDefault = CslaFormAction.None;
17 static internal PostSaveActionType PostSaveActionDefault = PostSaveActionType.None;
18 static internal bool RebindAfterSaveDefault = true;
19 static internal bool DisableWhenCleanDefault = false;
20 static internal bool DisableWhenUselessDefault = false;
21 static internal string CommandNameDefault = string.Empty;
22
23 #endregion
24
25 #region Member variables
26
27 protected CslaFormAction _actionType = ActionTypeDefault;
28 protected PostSaveActionType _postSaveAction = PostSaveActionDefault;
29 protected bool _rebindAfterSave = RebindAfterSaveDefault;
30 protected bool _disableWhenClean = DisableWhenCleanDefault;
31 protected bool _disableWhenUseless = DisableWhenUselessDefault;
32 protected string _commandName = CommandNameDefault;
33
34 #endregion
35
36 #region Public properties
37
38 public CslaFormAction ActionType
39 {
40 get { return _actionType; }
41 set { _actionType = value; }
42 }
43
44 public PostSaveActionType PostSaveAction
45 {
46 get { return _postSaveAction; }
47 set { _postSaveAction = value; }
48 }
49
50 public bool RebindAfterSave
51 {
52 get { return _rebindAfterSave; }
53 set { _rebindAfterSave = value; }
54 }
55
56 public bool DisableWhenClean
57 {
58 get { return _disableWhenClean; }
59 set { _disableWhenClean = value; }
60 }
61
62 public bool DisableWhenUseless
63 {
64 get { return _disableWhenUseless; }
65 set { _disableWhenUseless = value; }
66 }
67
68 public string CommandName
69 {
70 get { return _commandName; }
71 set { _commandName = value; }
72 }
73
74 #endregion
75 }
76}
CslaFormAction
The possible form actions.
Definition: Enums.cs:14
PostSaveActionType
The possible actions for post save.
Definition: Enums.cs:41