Ejemplo n.º 1
0
        public FormControlCenter()
        {
            InitializeComponent();

            // Intialize the nurse's station
            m_bns = new NurseStation("Nurse Station Zebra");

            // Start up management console
            ManagementRecordSystem mrs = new ManagementRecordSystem("Big Brother");
            FormMessage fm = new FormMessage(m_bns, mrs, false);

            fm.Show();
        }
Ejemplo n.º 2
0
 private void butPager_Click(object sender, EventArgs e)
 {
     String userName = "******";
     String pagerNum = "1234";
     if (csharpExamples.InputBox("Pager user name", "Enter Pager user name:", ref userName) == DialogResult.OK)
     {
         if (csharpExamples.InputBox("Pager number", "Enter Pager number:", ref pagerNum) == DialogResult.OK)
         {
             Pager pager = new Pager(userName, pagerNum);
             FormMessage mes = new FormMessage(m_bns, pager,true);
             mes.Show();
         }
     }
 }
Ejemplo n.º 3
0
 private void butEmail_Click(object sender, EventArgs e)
 {
     String userName = "******";
     String email = "1234";
     if (csharpExamples.InputBox("E-Mail user name", "Enter username:"******"E-Mail Address", "Enter e-mail address:", ref email) == DialogResult.OK)
         {
             Email emailMessager = new Email(userName, email);
             FormMessage mes = new FormMessage(m_bns, emailMessager, true);
             mes.Show();
         }
     }
 }
Ejemplo n.º 4
0
 private void butPhone_Click(object sender, EventArgs e)
 {
     String userName = "******";
     String phoneNum = "1234";
     if (csharpExamples.InputBox("Phone user name", "Enter username:"******"Phone Number", "Enter phone number:", ref phoneNum) == DialogResult.OK)
         {
             MobilePhone emailMessager = new MobilePhone(userName, phoneNum);
             FormMessage mes = new FormMessage(m_bns, emailMessager, true);
             mes.Show();
         }
     }
 }