Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
        private void select_WJPanel(object sender, SelectionChangedEventArgs 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
             */
            PanelWJ panel = _WJPanels_.SelectedItem as PanelWJ;

            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(panel.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);
        }
Exemplo n.º 3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // write wj title
            string field_date = DateTime.Today.ToString("MM.dd.yyyy");

            if (e.Parameter != null)
            {
                this.wj_data_entry = (WJDataEntry)e.Parameter;
                this.data_entry    = this.wj_data_entry.data_info;
                string title = $"{this.data_entry.batch.batch_name} {field_date} - Panel {this.data_entry.panel_id} - {this.wj_data_entry.psi} psi";
                WJDataTitle.Text = title;
                update_total_macro();
            }

            base.OnNavigatedTo(e);
        }