Beispiel #1
0
 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Return)
     {
         if (string.IsNullOrEmpty(textBox1.Text) == false)
         {
             MyScheduleView myrcp = new MyScheduleView(0, textBox1.Text, false);
             myrcp.defaultClinicId = ((Clinic)comboBox1.SelectedItem).clinicID;
             myrcp.PushViewStack = PushViewStack;
             PushViewStack(myrcp, WeifenLuo.WinFormsUI.Docking.DockState.Document);
         }
         else
         {
             MessageBox.Show("Please enter a name or MRN to search for.");
         }
     }
 }
Beispiel #2
0
        /************************/
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(RiskClinicDashboard).ToString())
            {
                rcd = new RiskClinicDashboard();
                rcd.PushViewStack = PushViewOnMainWindow;
                viewStack.Push(rcd);
                return rcd;
            }
            if (persistString == typeof(BreastImagingDashboard).ToString())
            {
                bid = new BreastImagingDashboard();
                bid.PushViewStack = PushViewOnMainWindow;
                viewStack.Push(bid);
                return bid;
            }
            if (persistString == typeof(MyScheduleView).ToString())
            {
                mpv = new MyScheduleView();
                mpv.PushViewStack = PushViewOnMainWindow;
                viewStack.Push(mpv);
                return mpv;
            }

            if (persistString == "RiskApps3.View.RiskClinic.MyPatientsView")
            {
                RiskApps3.Model.Clinic.Dashboard.myPatientsQueue p_MyPatientsQueue = new Model.Clinic.Dashboard.myPatientsQueue();
                HighRiskFollowupView hrfv = new HighRiskFollowupView(p_MyPatientsQueue);
                hrfv.PushViewStack = PushViewOnMainWindow;
                viewStack.Push(hrfv);
                return hrfv;
            }

            return null;
        }
Beispiel #3
0
 /**************************************************************************************************/
 private void bitmapButton1_Click(object sender, EventArgs e)
 {
     MyScheduleView myrcp = new MyScheduleView(0, null, true);
     myrcp.defaultClinicId = ((Clinic)comboBox1.SelectedItem).clinicID;
     myrcp.PushViewStack = PushViewStack;
     PushViewStack(myrcp, WeifenLuo.WinFormsUI.Docking.DockState.Document);
 }