Ejemplo n.º 1
0
        private void to_waterjet(object sender, RoutedEventArgs e)
        {
            Debug.WriteLine("To waterjet");
            WaterJet wj = new WaterJet(this.selected_batch, 0);

            this.Frame.Navigate(typeof(WJPanels), wj);
        }
Ejemplo n.º 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // write field day title
            string field_date = DateTime.Today.ToString("MM.dd.yyyy");

            if (e.Parameter != null)
            {
                this.wj_info = (WaterJet)e.Parameter;
                WJTitle.Text = $"{this.wj_info.batch.batch_name} {field_date} - Water Jet Panels";
                psiVal.Text  = $"{this.wj_info.psi} psi";
                // if the psi is 240 there is no next icon
                if (this.wj_info.psi == 240)
                {
                    next_button.Visibility = Visibility.Collapsed;
                }
                else if (this.wj_info.psi == 0)
                {
                    back_button.Visibility = Visibility.Collapsed;
                }
            }

            wj_panels.Add(new PanelWJ("1234"));
            wj_panels.Add(new PanelWJ("1235"));
            wj_panels.Add(new PanelWJ("1236"));
            wj_panels.Add(new PanelWJ("1237"));
            wj_panels.Add(new PanelWJ("1238"));
            base.OnNavigatedTo(e);
        }
Ejemplo n.º 3
0
        private void save_and_exit(object sender, RoutedEventArgs e)
        {
            /**
             * TODO: Write contents of textBoxes to database here
             **/
            WaterJet wj = new WaterJet(this.data_entry.batch, this.wj_data_entry.psi);

            this.Frame.Navigate(typeof(WJPanels), wj);
        }
Ejemplo n.º 4
0
        private void exit(object sender, RoutedEventArgs e)
        {
            WaterJet wj = new WaterJet(this.data_entry.batch, this.wj_data_entry.psi);

            this.Frame.Navigate(typeof(WJPanels), wj);
        }