示例#1
0
        private void select_FoulingPanel(object sender, SelectionChangedEventArgs e)
        {
            /* TODO:
             *  A read should be performed to the fouling information table here for the
             *  batch_field day identifier and the panel. If there is data recorded initialize organisms with that
             *  info, other wise empty inititalization
             */
            PanelFouling panel     = FoulingPanel.SelectedItem as PanelFouling;
            Barnacle     barnacle  = new Barnacle();
            Molluscs     molluscs  = new Molluscs();
            Tubeworms    tubeworms = new Tubeworms();
            Bryozoans    bryozoans = new Bryozoans();
            Hydroids     hydroids  = new Hydroids();
            Anenomes     anenomes  = new Anenomes();
            Tunicates    tunicates = new Tunicates();
            Amphipods    amphipods = new Amphipods();
            Sponges      sponges   = new Sponges();
            Aglae        aglae     = new Aglae();
            UnknownSoft  unknown   = new UnknownSoft();
            Incipient    incipient = new Incipient();
            Biofilm      biofilm   = new Biofilm();

            FoulingDataEntry data = new FoulingDataEntry(panel.panel_id, this.selected_batch, barnacle,
                                                         molluscs, tubeworms, bryozoans, hydroids, anenomes, tunicates, amphipods, sponges, aglae,
                                                         unknown, incipient, biofilm);

            this.Frame.Navigate(typeof(FoulingDataPage), data);
        }
示例#2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // write title
            string field_date = DateTime.Today.ToString("MM.dd.yyyy");

            // If its foulding fill in the information
            if (e.Parameter != null && (e.Parameter is FoulingDataEntry))
            {
                this.data_entry = (FoulingDataEntry)e.Parameter;
                string title = $"{this.data_entry.batch.batch_name} {field_date} - Fouling Panel {this.data_entry.panel_id}";
                TunicateTitle.Text = title;
                ct.Text            = this.data_entry.tunicates.ct;
                pcal.Text          = this.data_entry.tunicates.pcal;
            }
            else if (e.Parameter != null && (e.Parameter is WJDataEntry))
            {
                this.wj_data_entry = (WJDataEntry)e.Parameter;
                string title = $"{this.wj_data_entry.data_info.batch.batch_name} {field_date} - Fouling Panel {this.wj_data_entry.data_info.panel_id} - {this.wj_data_entry.psi} psi";
                TunicateTitle.Text = title;
                ct.Text            = this.wj_data_entry.data_info.tunicates.ct;
                pcal.Text          = this.wj_data_entry.data_info.tunicates.pcal;
            }

            base.OnNavigatedTo(e);
        }
示例#3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // write fouling title
            string field_date = DateTime.Today.ToString("MM.dd.yyyy");

            if (e.Parameter != null)
            {
                this.data_entry = (FoulingDataEntry)e.Parameter;
                string title = $"{this.data_entry.batch.batch_name} {field_date} - Fouling Panel {this.data_entry.panel_id}";
                FoulingDataTitle.Text = title;
                update_total_macro();
            }

            base.OnNavigatedTo(e);
        }
示例#4
0
        private void specify_panel(object sender, RoutedEventArgs e)
        {
            /* TODO:
             *  A read should be performed to the waterjet information table here for the
             *  batch_field day identifier and the panel and psi. If there is data recorded initialize organisms with that
             *  info, other wise empty inititalization
             */
            string panel_id = panel.Text;

            if (string.IsNullOrEmpty(panel_id))
            {
                return;
            }

            PanelWJ     p         = new PanelWJ(panel_id);
            Barnacle    barnacle  = new Barnacle();
            Molluscs    molluscs  = new Molluscs();
            Tubeworms   tubeworms = new Tubeworms();
            Bryozoans   bryozoans = new Bryozoans();
            Hydroids    hydroids  = new Hydroids();
            Anenomes    anenomes  = new Anenomes();
            Tunicates   tunicates = new Tunicates();
            Amphipods   amphipods = new Amphipods();
            Sponges     sponges   = new Sponges();
            Aglae       aglae     = new Aglae();
            UnknownSoft unknown   = new UnknownSoft();
            Incipient   incipient = new Incipient();
            Biofilm     biofilm   = new Biofilm();

            FoulingDataEntry data_info = new FoulingDataEntry(p.panel_id, this.wj_info.batch, barnacle,
                                                              molluscs, tubeworms, bryozoans, hydroids, anenomes, tunicates, amphipods, sponges, aglae,
                                                              unknown, incipient, biofilm);
            WJDataEntry data = new WJDataEntry(data_info, this.wj_info.psi);

            this.Frame.Navigate(typeof(WJDataPage), data);
        }
示例#5
0
 public WJDataEntry(FoulingDataEntry info, int psi)
 {
     this.data_info = info;
     this.psi       = psi;
 }