Ejemplo n.º 1
0
 private void Grid_Load(object sender, RoutedEventArgs e)
 {
     Data  = new CircleDataSource("000025");
     model = (new DataSource("000025")).getMiaoShu();
     wheateZhiLiangTeXingHeader.miaoShu.Document = convertToBox.convertStringToFlowDocument(model.chartMiaoShu);
     col.ItemsSource = Data;
     col.Visibility  = Visibility.Visible;
     //textName.Content = Data[0].yLable;
     //water.Content = Data[0].Water;
     //temp.Content = Data[0].GrainTemp;
     labTitle.Content          = "储藏过程中小麦不完善度的变化情况";
     categoryXAxis.ItemsSource = Data;
 }
Ejemplo n.º 2
0
 private void comBoxTemp_Change(object sender, EventArgs e)
 {
     if (But11.IsChecked == true)
     {
         if (Convert.ToDouble(comBoxTemp.SelectedItem) == 20)
         {
             Data  = new CircleDataSource("000025");
             model = (new DataSource("000025")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 25)
         {
             Data  = new CircleDataSource("000026");
             model = (new DataSource("000026")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 27.5)
         {
             Data  = new CircleDataSource("000027");
             model = (new DataSource("000027")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 30)
         {
             Data  = new CircleDataSource("000028");
             model = (new DataSource("000028")).getMiaoShu();
         }
     }
     if (But12.IsChecked == true)
     {
         if (Convert.ToDouble(comBoxTemp.SelectedItem) == 20)
         {
             Data  = new CircleDataSource("000029");
             model = (new DataSource("000029")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 25)
         {
             Data  = new CircleDataSource("000030");
             model = (new DataSource("000030")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 27.5)
         {
             Data  = new CircleDataSource("000031");
             model = (new DataSource("000031")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 30)
         {
             Data  = new CircleDataSource("000032");
             model = (new DataSource("000032")).getMiaoShu();
         }
     }
     if (But13.IsChecked == true)
     {
         if (Convert.ToDouble(comBoxTemp.SelectedItem) == 20)
         {
             Data  = new CircleDataSource("000033");
             model = (new DataSource("000033")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 25)
         {
             Data  = new CircleDataSource("000034");
             model = (new DataSource("000034")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 27.5)
         {
             Data  = new CircleDataSource("000035");
             model = (new DataSource("000035")).getMiaoShu();
         }
         else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 30)
         {
             Data  = new CircleDataSource("000036");
             model = (new DataSource("000036")).getMiaoShu();
         }
     }
     wheateZhiLiangTeXingHeader.miaoShu.Document = convertToBox.convertStringToFlowDocument(model.chartMiaoShu);
     col.ItemsSource = Data;
     col.Visibility  = Visibility.Visible;
     //textName.Content = Data[0].yLable;
     //water.Content = Data[0].Water;
     //temp.Content = Data[0].GrainTemp;
     labTitle.Content          = "储藏过程中小麦不完善度的变化情况";
     categoryXAxis.ItemsSource = Data;
 }
Ejemplo n.º 3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            RadioButton but = sender as RadioButton;

            But11.IsChecked = false;
            But12.IsChecked = false;
            But13.IsChecked = false;
            but.IsChecked   = true;
            if (but == But11)
            {
                if (Convert.ToDouble(comBoxTemp.SelectedItem) == 20)
                {
                    Data  = new CircleDataSource("000013");
                    model = (new DataSource("000013")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 25)
                {
                    Data  = new CircleDataSource("000014");
                    model = (new DataSource("000014")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 27.5)
                {
                    Data  = new CircleDataSource("000015");
                    model = (new DataSource("000015")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 30)
                {
                    Data  = new CircleDataSource("000016");
                    model = (new DataSource("000016")).getMiaoShu();
                }
            }
            if (but == But12)
            {
                if (Convert.ToDouble(comBoxTemp.SelectedItem) == 20)
                {
                    Data  = new CircleDataSource("000017");
                    model = (new DataSource("000017")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 25)
                {
                    Data  = new CircleDataSource("000018");
                    model = (new DataSource("000018")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 27.5)
                {
                    Data  = new CircleDataSource("000019");
                    model = (new DataSource("000019")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 30)
                {
                    Data  = new CircleDataSource("000020");
                    model = (new DataSource("000020")).getMiaoShu();
                }
            }
            if (but == But13)
            {
                if (Convert.ToDouble(comBoxTemp.SelectedItem) == 20)
                {
                    Data  = new CircleDataSource("000021");
                    model = (new DataSource("000021")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 25)
                {
                    Data  = new CircleDataSource("000022");
                    model = (new DataSource("000022")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 27.5)
                {
                    Data  = new CircleDataSource("000023");
                    model = (new DataSource("000023")).getMiaoShu();
                }
                else if (Convert.ToDouble(comBoxTemp.SelectedItem) == 30)
                {
                    Data  = new CircleDataSource("000024");
                    model = (new DataSource("000024")).getMiaoShu();
                }
            }
            wheateZhiLiangTeXingHeader.miaoShu.Document = convertToBox.convertStringToFlowDocument(model.chartMiaoShu);
            col.ItemsSource = Data;
            col.Visibility  = Visibility.Visible;
            //textName.Content = Data[0].yLable;
            // water.Content = Data[0].Water;
            // temp.Content = Data[0].GrainTemp;
            labTitle.Content          = "储藏过程中小麦脂肪酸的变化情况";
            categoryXAxis.ItemsSource = Data;
            //HighestValueOverlay.ItemsSource = Data;
            //LowestValueOverlay.ItemsSource = Data;
            //MeanValueOverlay.ItemsSource = Data;
        }