Exemple #1
0
 /// <summary>
 /// Copies all variables from a another variable connections
 /// </summary>
 /// <param name="values">The values.</param>
 public void CopyFrom(ValueItemCollection values)
 {
     foreach (var item in values.Items)
     {
         this[item.Name] = item.Value;
     }
 }
Exemple #2
0
 public Profile()
 {
     Files       = new AsyncObservableCollection <FileItem>();
     Variables   = new ValueItemCollection();
     ExportItems = new AsyncObservableCollection <ExportItem>();
     Id          = Guid.NewGuid().ToString();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CameraProfile"/> class.
 /// </summary>
 /// <param name="cameraDevice">The camera device for  default saved values</param>
 public CameraProfile(ICameraDevice cameraDevice)
 {
     Id     = Guid.NewGuid().ToString();
     Values = new ValueItemCollection();
     if (cameraDevice != null)
     {
         Values["Mode"]                 = cameraDevice.Mode.Value;
         Values["ShutterSpeed"]         = cameraDevice.ShutterSpeed.Value;
         Values["FNumber"]              = cameraDevice.FNumber.Value;
         Values["IsoNumber"]            = cameraDevice.IsoNumber.Value;
         Values["WhiteBalance"]         = cameraDevice.WhiteBalance.Value;
         Values["CompressionSetting"]   = cameraDevice.CompressionSetting.Value;
         Values["FocusMode"]            = cameraDevice.FocusMode.Value;
         Values["ExposureMeteringMode"] = cameraDevice.ExposureMeteringMode.Value;
     }
 }
 public FileItem()
 {
     DateTime  = DateTime.Now;
     Variables = new ValueItemCollection();
 }
 public FileItem(string file)
 {
     TempFile  = file;
     DateTime  = DateTime.Now;
     Variables = new ValueItemCollection();
 }
 public CameraProfile()
 {
     Id     = Guid.NewGuid().ToString();
     Values = new ValueItemCollection();
 }
Exemple #7
0
 public ExportItem()
 {
     Variables = new ValueItemCollection();
     IsOpen    = true;
 }