Exemplo n.º 1
0
 private void Frames_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (Frames.SelectedItem != null)
     {
         idframe               = (Frames.SelectedItem as DataBase.InfoSensDataSet.FramesRow).IdFrame;
         pic.Source            = LP.GetImgBasic(idframe);
         ChangeFrame.IsEnabled = true;
         ButAfter.IsEnabled    = true;
         ButBefore.IsEnabled   = true;
     }
 }
Exemplo n.º 2
0
        private void FramePage_Loaded(object sender, RoutedEventArgs e)
        {
            Config();
            int SensorId = LogicProgram.DataBase.frames.FindByIdFrame(id).IdSensors;

            NameFrame.Text             = LogicProgram.DataBase.frames.FindByIdFrame(id).NameFile;
            SensorOfFrame.SelectedItem = LogicProgram.DataBase.sensors.FindByIdSensor(SensorId);
            DescriptionFrame.Text      = LogicProgram.DataBase.frames.FindByIdFrame(id).Description;
            DateFrame.SelectedDate     = LogicProgram.DataBase.frames.FindByIdFrame(id).DateAdd;

            BasicPathFrame.Text = LogicProgram.DataBase.frames.FindByIdFrame(id).PathFile;
            BasicBut.Background = new ImageBrush()
            {
                ImageSource = LP.GetImgBasic(id)
            };

            DarkPathFrame.Text = LogicProgram.DataBase.frames.FindByIdFrame(id).PathDarkFile;
            DarkBut.Background = new ImageBrush()
            {
                ImageSource = LP.GetImgDark(id)
            };

            FlatPathFrame.Text = LogicProgram.DataBase.frames.FindByIdFrame(id).PathFlatFile;
            FlatBut.Background = new ImageBrush()
            {
                ImageSource = LP.GetImgFlat(id)
            };
        }