Example #1
0
        public FormMessage(BaseNurseStation bns, BaseMessageSystem bms, Boolean selectable)
        {
            InitializeComponent();

            m_bns = bns;
            m_bms = bms;
            m_bms.addHook(this);
            txtName.Text = m_bms.title;
            this.Text = m_bms.name;

            if (!selectable)
            {
                chkRegister.Checked = true;
                chkRegister.Enabled = false;
            }
        }
Example #2
0
 public void Detach(BaseMessageSystem observer)
 {
     m_observers.Remove(observer);
 }
Example #3
0
 public void Attach(BaseMessageSystem observer)
 {
     m_observers.Add(observer);
 }