Esempio n. 1
0
 public EditView()
 {
     this.InitializeComponent();
     dispSensorList   = new ObservableCollection <Sensor>();
     sensorTypeList   = SensorType.GetSensorTypes();
     canvasSensorList = new List <Tuple <Sensor, Rectangle, TextBlock, TranslateTransform> >();
     sensorDetail     = new TextBox();
 }
 public ConfigSensorDialog(EditView parentPage, int sensorTupleIndex, string sensorName,
                           string sensorType, double defaultWidth, double defaultHeight,
                           double maxWidth, double maxHeight, string sensorDescription)
 {
     this.InitializeComponent();
     _parentPage        = parentPage;
     _sensorTupleIndex  = sensorTupleIndex;
     _sensorName        = sensorName;
     _sensorType        = sensorType;
     _defaultWidth      = defaultWidth;
     _defaultHeight     = defaultHeight;
     _maxWidth          = maxWidth;
     _maxHeight         = maxHeight;
     _sensorDescription = sensorDescription;
     sensorTypeList     = SensorType.GetSensorTypes();
 }
 public AddSensorDialog()
 {
     this.InitializeComponent();
     allSensorTypes = SensorType.GetSensorTypes();
 }