Esempio n. 1
0
        /**************************************************************************************************/
        public void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                fillControlsCallback fcc = new fillControlsCallback(FillControls);
                this.Invoke(fcc, null);
            }
            else
            {
                loadingCircle1.Active  = false;
                loadingCircle1.Visible = false;

                flowLayoutPanel1.Controls.Clear();
                flowLayoutPanel2.Controls.Clear();

                foreach (Order order in orders.ToList())
                {
                    OrderRow newRow = new OrderRow(order, this);
                    if (order.Order_finalized == 1)
                    {
                        newRow.hideDeleteButton();
                        flowLayoutPanel2.Controls.Add(newRow);
                    }
                    else
                    {
                        flowLayoutPanel1.Controls.Add(newRow);
                    }

                    //Application.DoEvents();
                }
            }
        }
Esempio n. 2
0
        public void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                fillControlsCallback fcc = new fillControlsCallback(FillControls);
                this.Invoke(fcc, null);
            }
            else
            {
                loadingCircle1.Active = false;
                loadingCircle1.Visible = false;

                relativeHeader1.setRelative(selectedRelative);

                flowLayoutPanel1.Controls.Clear();

                foreach (GeneticTest geneticTest in pmh.GeneticTests)
                {
                    GeneticTestingRowExpandable newRow = new GeneticTestingRowExpandable(this, geneticTest);
                    flowLayoutPanel1.Controls.Add(newRow);
                    //Application.DoEvents();
                }
                setupPanels();

                if (pmh.GeneticTests.Count == 0)
                    noLabel.Visible = true;
                else
                    noLabel.Visible = false;
            }
        }
Esempio n. 3
0
        public void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                fillControlsCallback fcc = new fillControlsCallback(FillControls);
                this.Invoke(fcc, null);
            }
            else
            {
                loadingCircle1.Active = false;
                loadingCircle1.Visible = false;

                relativeHeader1.setRelative(selectedRelative);

                flowLayoutPanel1.Controls.Clear();

                flowLayoutPanel1.Controls.Add(new PMHRowHeader());

                foreach (ClincalObservation co in pmh.Observations)
                {
                    PMHRow pmhRow = new PMHRow(co, this);
                    pmhRow.disease.Text = co.disease;
                    flowLayoutPanel1.Controls.Add(pmhRow);
                    //Application.DoEvents();
                }

                setupDiseases();

                if (pmh.Observations.Count == 0)
                    noLabel.Visible = true;
                else
                    noLabel.Visible = false;
            }
        }
Esempio n. 4
0
        /**************************************************************************************************/
        public void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                fillControlsCallback fcc = new fillControlsCallback(FillControls);
                this.Invoke(fcc, null);
            }
            else
            {
                loadingCircle1.Active = false;
                loadingCircle1.Visible = false;

                flowLayoutPanel1.Controls.Clear();
                flowLayoutPanel2.Controls.Clear();

                foreach (Order order in orders.ToList())
                {
                    OrderRow newRow = new OrderRow(order, this);
                    if (order.Order_finalized == 1)
                    {
                        newRow.hideDeleteButton();
                        flowLayoutPanel2.Controls.Add(newRow);
                    }
                    else
                    {
                        flowLayoutPanel1.Controls.Add(newRow);
                    }

                    //Application.DoEvents();
                }
            }
        }
Esempio n. 5
0
        public void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                fillControlsCallback fcc = new fillControlsCallback(FillControls);
                this.Invoke(fcc, null);
            }
            else
            {
                loadingCircle1.Active  = false;
                loadingCircle1.Visible = false;

                relativeHeader1.setRelative(selectedRelative);

                flowLayoutPanel1.Controls.Clear();

                foreach (GeneticTest geneticTest in pmh.GeneticTests)
                {
                    GeneticTestingRowExpandable newRow = new GeneticTestingRowExpandable(this, geneticTest);
                    flowLayoutPanel1.Controls.Add(newRow);
                    //Application.DoEvents();
                }
                setupPanels();

                if (pmh.GeneticTests.Count == 0)
                {
                    noLabel.Visible = true;
                }
                else
                {
                    noLabel.Visible = false;
                }
            }
        }
Esempio n. 6
0
        public void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                fillControlsCallback fcc = new fillControlsCallback(FillControls);
                this.Invoke(fcc, null);
            }
            else
            {
                foreach (Task theTask in proband.Tasks.OrderByDescending(t => ((Task)t).Task_Date))
                {
                    CommunicationEntry ce = new CommunicationEntry();
                    ce.title  = theTask.Task_Type;
                    ce.date   = theTask.Task_Date;
                    ce.Tag    = theTask;
                    ce.author = theTask.Task_AssignedBy;

                    bool add = true;
                    if (objectListView1.Objects != null)
                    {
                        foreach (object o in objectListView1.Objects)
                        {
                            if (o is CommunicationEntry)
                            {
                                CommunicationEntry ce2 = (CommunicationEntry)o;
                                if (ce2.Tag is Task)
                                {
                                    if (ce2.Tag == theTask)
                                    {
                                        add = false;
                                    }
                                }
                            }
                        }
                    }
                    if (add)
                    {
                        objectListView1.AddObject(ce);
                    }
                    if (theTask == InitialTask)
                    {
                        objectListView1.SelectedObject = ce;
                    }
                }

                loadingCircle1.Visible = false;
                loadingCircle1.Enabled = false;
            }
        }
Esempio n. 7
0
        public void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                fillControlsCallback fcc = new fillControlsCallback(FillControls);
                this.Invoke(fcc, null);
            }
            else
            {
                loadingCircle1.Active  = false;
                loadingCircle1.Visible = false;

                relativeHeader1.setRelative(selectedRelative);

                flowLayoutPanel1.Controls.Clear();

                flowLayoutPanel1.Controls.Add(new PMHRowHeader());

                foreach (ClincalObservation co in pmh.Observations)
                {
                    PMHRow pmhRow = new PMHRow(co, this);
                    pmhRow.disease.Text = co.disease;
                    flowLayoutPanel1.Controls.Add(pmhRow);
                    //Application.DoEvents();
                }

                setupDiseases();

                if (pmh.Observations.Count == 0)
                {
                    noLabel.Visible = true;
                }
                else
                {
                    noLabel.Visible = false;
                }
            }
        }
Esempio n. 8
0
        public void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                fillControlsCallback fcc = new fillControlsCallback(FillControls);
                this.Invoke(fcc, null);
            }
            else
            {
                foreach (Task theTask in proband.Tasks.OrderByDescending(t => ((Task)t).Task_Date))
                {
                    CommunicationEntry ce = new CommunicationEntry();
                    ce.title = theTask.Task_Type;
                    ce.date = theTask.Task_Date;
                    ce.Tag = theTask;
                    ce.author = theTask.Task_AssignedBy;

                    bool add = true;
                    if (objectListView1.Objects != null)
                    {
                        foreach (object o in objectListView1.Objects)
                        {
                            if (o is CommunicationEntry)
                            {
                                CommunicationEntry ce2 = (CommunicationEntry) o;
                                if (ce2.Tag is Task)
                                {
                                    if (ce2.Tag == theTask)
                                    {
                                        add = false;
                                    }
                                }
                            }
                        }
                    }
                    if (add)
                    {
                        objectListView1.AddObject(ce);
                    }
                    if (theTask == InitialTask)
                    {
                        objectListView1.SelectedObject = ce;
                    }
                }

                loadingCircle1.Visible = false;
                loadingCircle1.Enabled = false;
            }
        }