Ejemplo n.º 1
0
        /// <summary>
        /// Checks to see if Instance is created, and returns Instance
        /// </summary>
        /// <returns>ClosedTickets Instance</returns>
        public static NWNewVisit GetChildInstance(int patientId)
        {
            if (_NwNewVisitform == null) //if not created yet, Create an instance
                _NwNewVisitform = new NWNewVisit(patientId);
            else
            {
                _NwNewVisitform.Dispose();
                _NwNewVisitform = new NWNewVisit(patientId);

            }
            return _NwNewVisitform;  //just created or created earlier.Return it
        }
Ejemplo n.º 2
0
 private void newVisitButton_Click(object sender, EventArgs e)
 {
     try
     {
         NWNewVisit newVisit = new NWNewVisit(_patientId);
         newVisit.MdiParent = MdiParent;
         newVisit.Show();
         newVisit.BringToFront();
     }
     catch (Exception exception)
     {
         MessageBox.Show(@"Invalid Selection, Please make sure the patient Id is highlighted Blue.");
     }
 }