Ejemplo n.º 1
0
        private static void OnCell0PropChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Int16          newCellVoltages = (Int16)e.NewValue;
            CMUUserControl cmucontrol      = (CMUUserControl)d;

            cmucontrol.CellBar0.CellVoltage = newCellVoltages;
        }
Ejemplo n.º 2
0
        private static void OnCellTempChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            double         newTemp    = (double)e.NewValue / 10;
            CMUUserControl cmucontrol = (CMUUserControl)d;

            cmucontrol.UICellTemp.Text = newTemp.ToString();
        }
Ejemplo n.º 3
0
        private static void OnCmuNumberChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            string         newCmuNumber = (string)e.NewValue;
            CMUUserControl cmucontrol   = (CMUUserControl)d;

            cmucontrol.NameCMU.Text = "CMU" + newCmuNumber;
        }
Ejemplo n.º 4
0
        private static void OnCmuSerialChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Int32          newCmuSerial = (Int32)e.NewValue;
            CMUUserControl cmucontrol   = (CMUUserControl)d;

            cmucontrol.CmuSerialNumber.Text = newCmuSerial.ToString();
        }