CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
PersonForm.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="PersonForm.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;
9using System.Collections.Generic;
10using System.ComponentModel;
11using System.Data;
12using System.Diagnostics;
13using System.Drawing;
14using System.Linq;
15using System.Text;
16using System.Windows.Forms;
17
18namespace Csla.Test.Windows
19{
20 public partial class PersonForm : Form
21 {
22 public PersonForm()
23 {
24 InitializeComponent();
25 }
26
27 public void BindUI(EditablePerson person, bool useStandardActionExtender)
28 {
29 editablePersonBindingSource.DataSource = person;
30 readWriteAuthorization1.ResetControlAuthorization();
31 if (useStandardActionExtender)
32 {
33 cslaActionExtender1.ResetActionBehaviors(person);
34 }
35 else
36 {
37 cslaActionExtenderToolStrip1.ResetActionBehaviors(person);
38 }
39 }
40
41 public void BindUI(EditablePerson person)
42 {
43 BindUI(person, true);
44 }
45
46 private void editablePersonBindingSource_CurrentItemChanged(object sender, EventArgs e)
47 {
48 Debug.Print("applying authorization");
49 readWriteAuthorization1.ResetControlAuthorization();
50 }
51 }
52}
void BindUI(EditablePerson person, bool useStandardActionExtender)
Definition: PersonForm.cs:27
Csla.Windows.ReadWriteAuthorization readWriteAuthorization1
void BindUI(EditablePerson person)
Definition: PersonForm.cs:41