Exemplo n.º 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            //Observer obs = new Observer(memberCtr);

            //MemberNameChanged += obs.UpdateMemberName;

            Member m = new MemberCtr().CreateMember(txtName.Text);

            if (this.MemberNameChanged != null)
            {
                this.MemberNameChanged(this, new MemberNameChangedArgs(this.txtName.Text));
            }

            //obs.Show();
        }
Exemplo n.º 2
0
 public Observer(MemberCtr memberCtr)
 {
     this.memberCtr = memberCtr;
     InitializeComponent();
 }
Exemplo n.º 3
0
 public Notifier(MemberCtr memberCtr)
 {
     this.memberCtr = memberCtr;
     InitializeComponent();
 }
Exemplo n.º 4
0
 private void Main_Load(object sender, EventArgs e)
 {
     memberCtr = new MemberCtr();
 }