Esempio n. 1
0
        public ReviewBox(LogData monkdata)
        {
            MonkData = monkdata;
            Name = monkdata.Mid + "ReviewBox";
            Text = monkdata.Station + "-" + monkdata.Mid;

            DataDisplay.ReadOnly = true;
            DataDisplay.Text = monkdata.toString();
            DataDisplay.Location = new Point(6, 16);

            Change.Text = "Make Changes";
            Change.Width = 80;
            Change.Location = new Point(25, 25);

            Controls.Add(DataDisplay);
            Controls.Add(Change);
        }
Esempio n. 2
0
        public ReviewBox(LogData monkdata)
        {
            Width = 175;
            Height = 225;
            monkData = monkdata;
            labroom = monkdata.Labroom;
            Name = monkdata.Mid + "ReviewBox";
            Text = monkdata.Station + "-" + monkdata.Mid;

            dataDisplay.Width = 150;
            dataDisplay.Height = 180;
            dataDisplay.Text = monkdata.toString();
            dataDisplay.Location = new Point(6, 16);
            dataDisplay.Font = new Font("Microsoft San Serif", 8);

            /*change.Width = 80;
            change.Text = "Change";
            change.Location = new Point(40, 184);
            change.Click += new System.EventHandler(change_Click);
            Controls.Add(change);*/

            Controls.Add(dataDisplay);
        }
Esempio n. 3
0
 public void storeData(string labroom, LogData[] monksdata)
 {
     Data[labroom] = new LogData[8];
     for (int i = 0; i < 8; i++)
     {
         Data[labroom][i] = monksdata[i];
     }
 }
Esempio n. 4
0
        public LogBox(string name, string station, string labroom, Config config)
        {
            //general properties
            data = new LogData(name, station, labroom);
            config_ = config;
            Name = name + "Logbox";
            Text = station + "-" + name;
            BackColor = SystemColors.Control;
            Width = 340;
            Height = 320;
            Margin = new Padding(8);

            //checkboxes with labels and lists
            behavior.Text = "Behavior:";
            behavior.Height = label_ht;
            behavior.Width = label_width;
            behavior.Location = new Point(label_x, label_y);
            behaviorCheck.Location = new Point(check_x, check_y);
            behaviorCheck.Width = 20;
            behaviorCheck.CheckedChanged += new System.EventHandler(behaviorCheck_Checked);
            behaviorList.Location = new Point(list_x, check_y);
            behaviorList.Width = 190;
            behaviorList.Items.AddRange(config.behavior_list);

            stool.Text = "Stool:";
            stool.Height = label_ht;
            stool.Location = new Point(label_x, label_y + label_dy);
            stoolCheck.Location = new Point(check_x, check_y + label_dy);
            stoolCheck.Width = 20;
            stoolCheck.CheckedChanged += new System.EventHandler(stoolCheck_Checked);
            stoolList.Location = new Point(list_x, check_y + label_dy);
            stoolList.Width = 190;
            stoolList.Items.AddRange(config.stool_list);

            suppFeed.Text = "Supplemental Feed:";
            suppFeed.Height = label_ht;
            suppFeed.Width = 130;
            suppFeed.Location = new Point(label_x, label_y + 2 * label_dy);
            suppFeedList.Location = new Point(list_x, check_y + 2 * label_dy);
            suppFeedList.Height = 66;
            suppFeedList.Width = 190;
            suppFeedList.Items.AddRange(config.supp_feed_templates.Keys.ToArray<string>());
            //foreach (SuppFood sfObj in supp_foods) {
              //  suppFeedObjs.Add(sfObj);
            //}
            // init supplemental food data table
            /*suppFeedTable.AutoGenerateColumns = false;
            suppFeedTable.Location = new Point(list_x, check_y + 2 * label_dy);
            suppFeedTable.Size = new Size(180, 70);
            suppFeedTable.ScrollBars = ScrollBars.Both;
            suppFeedTable.DataSource = suppFeedObjs;
            // add columns
            DataGridViewColumn column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "Name";
            column.Name = "Name";
            column.Width = 60;
            suppFeedTable.Columns.Add(column);
            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "Amount";
            column.Name = "Amt (g)";
            column.Width = 60;
            suppFeedTable.Columns.Add(column);*/

            equipment.Text = "Equipment:";
            equipment.Height = label_ht;
            equipment.Width = label_width;
            equipment.Location = new Point(label_x, label_y + 5*label_dy);
            equipmentCheck.Location = new Point(check_x, check_y + 5*label_dy);
            equipmentCheck.Width = 20;
            equipmentCheck.CheckedChanged += new System.EventHandler(equipmentCheck_Checked);
            equipCheckList.Location = new Point(list_x, check_y + 5*label_dy);
            equipCheckList.Height = 66;
            equipCheckList.Width = 190;
            equipCheckList.ScrollAlwaysVisible = true;
            equipCheckList.CheckOnClick = true;
            equipCheckList.Items.AddRange(config.equipment_list);

            training.Text = "Training:";
            training.Height = label_ht;
            training.Width = label_width;
            training.Location = new Point(label_x, label_y + 7*label_dy + 16);
            trainingCheck.Width = 20;
            trainingCheck.Location = new Point(check_x, check_y + 7*label_dy + 16);
            trainingCheck.CheckedChanged += new System.EventHandler(trainingCheck_Checked);
            trainingList.Width = 190;
            trainingList.Location = new Point(list_x - 5, check_y + 7*label_y + 30);
            trainingList.Items.AddRange(config.training_list);

            comment.Text = "Comments:";
            comment.Location = new Point(label_x, label_y + 8*label_dy + 16);
            comment.Height = label_ht;
            comment.Width = label_width;
            comment.FlatStyle = FlatStyle.Standard;
            commentText.Location = new Point(check_x, label_y + 8*label_dy + 16);
            commentText.Width = 220;
            commentText.Height = 50;

            //report button
            /*report.Text = "Latest Report";
            report.Location = new Point(110, label_y + (int)(9.5 * label_dy) + 5);
            report.Height = button_ht;
            report.Width = button_width;
            report.FlatStyle = FlatStyle.Standard;
            report.Click += new System.EventHandler(report_Click);*/

            Controls.Add(behavior);
            Controls.Add(behaviorCheck);
            Controls.Add(stool);
            Controls.Add(stoolCheck);
            Controls.Add(suppFeed);
            Controls.Add(suppFeedList);
            Controls.Add(equipment);
            Controls.Add(equipmentCheck);
            Controls.Add(training);
            Controls.Add(trainingCheck);
            Controls.Add(comment);
            Controls.Add(commentText);
            //Controls.Add(report);
        }
Esempio n. 5
0
 public void saveData(int labroom, LogData[] monksdata)
 {
     for(int i = 0; i < monksdata.Length; i++)
         Data[labroom, i] = monksdata[i];
 }
Esempio n. 6
0
        public LogBox(string name, int station, int labroom)
        {
            data = new LogData(name, station, labroom);
            commentForm = new Comment(name, this);
            Name = name + "Logbox";
            Text = station + "-" + name;
            BackColor = SystemColors.Control;
            Width = 248;
            Height = 152;
            Margin = new Padding(8);

            report.Text = "Latest Report";
            report.Location = new Point(148, 120);
            report.Height = 20;
            report.Width = 88;
            report.FlatStyle = FlatStyle.Standard;
            report.Click += new System.EventHandler(report_Click);

            comment.Text = "Comment";
            comment.Location = new Point(172, 96);
            comment.Height = 20;
            comment.Width = 64;
            comment.FlatStyle = FlatStyle.Standard;
            comment.Click += new System.EventHandler(comment_Click);

            behavior.Text = "Misbehaved?";
            behavior.Height = 12;
            behavior.Width = 80;
            behavior.Location = new Point(6, 24);
            behaviorCheck.Location = new Point(105, 20);
            behaviorCheck.Width = 20;
            behaviorCheck.CheckedChanged += new System.EventHandler(behaviorCheck_Checked);
            behaviorList.Location = new Point(124, 20);
            behaviorList.Items.AddRange(new object[] {"pacing",
                                                      "not eating",
                                                      "not sleeping",
                                                      "aggressive"});

            stool.Text = "Stool abnormal?";
            stool.Height = 12;
            stool.Width = 90;
            stool.Location = new Point(6, 48);
            stoolCheck.Location = new Point(105, 44);
            stoolCheck.Width = 20;
            stoolCheck.CheckedChanged += new System.EventHandler(stoolCheck_Checked);
            stoolList.Location = new Point(124, 44);
            stoolList.Items.AddRange(new object[] {"pellets, hard",
                                                   "contiguous, dry",
                                                   "watery, no solids",
                                                   "entirely liquid"});

            blood.Text = "Blood?";
            blood.Height = 12;
            blood.Width = 90;
            blood.Location = new Point(6, 72);
            bloodCheck.Location = new Point(105, 68);
            bloodCheck.Width = 20;
            bloodCheck.CheckedChanged += new System.EventHandler(bloodCheck_Checked);
            bloodList.Location = new Point(124, 68);
            bloodList.Items.AddRange(new object[] {"contusion",
                                                   "blood visible",
                                                   "abrasion",
                                                   "laceration"});

            equipment.Text = "Equipment malfunction?";
            equipment.Height = 20;
            equipment.Width = 140;
            equipment.Location = new Point(6, 96);
            equipmentCheck.Location = new Point(150, 92);
            equipmentCheck.Width = 20;
            equipmentCheck.CheckedChanged += new System.EventHandler(equipmentCheck_Checked);
            equipmentList.Location = new Point(6, 116);
            equipmentList.Items.AddRange(new object[] {"LIXIT",
                                                       "feeders",
                                                       "fan",
                                                       "other"});

            Controls.Add(report);
            Controls.Add(comment);
            Controls.Add(behavior);
            Controls.Add(behaviorCheck);
            Controls.Add(stool);
            Controls.Add(stoolCheck);
            Controls.Add(blood);
            Controls.Add(bloodCheck);
            Controls.Add(equipment);
            Controls.Add(equipmentCheck);
        }