Example #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);
        }
Example #2
0
 public FoulingDataEntry(string id, Batch batch, Barnacle b, Molluscs m, Tubeworms t, Bryozoans by, Hydroids h,
                         Anenomes a, Tunicates tn, Amphipods amp, Sponges sp, Aglae ag, UnknownSoft us, Incipient i, Biofilm bf)
 {
     this.panel_id    = id;
     this.batch       = batch;
     this.barnacle    = b;
     this.molluscs    = m;
     this.tubeworms   = t;
     this.bryozoans   = by;
     this.hydroids    = h;
     this.anenomes    = a;
     this.tunicates   = tn;
     this.amphipods   = amp;
     this.sponges     = sp;
     this.aglae       = ag;
     this.unknownsoft = us;
     this.incipient   = i;
     this.biofilm     = bf;
 }
Example #3
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);
        }