private CameraViewModel CreateViewModel() { var cardInfo = CardViewModel.SelectedItem.Info; var softwareInfo = SoftwareViewModel.SelectedItem?.Info; var camera = CameraModelDetector.GetCameraModels(cardInfo, softwareInfo, null, default(CancellationToken)); var viewModel = new CameraViewModel(); Update(viewModel, camera); return(viewModel); }
static void Main() { ExecuteCommand("--status --debug --timeout 3"); var d = ParseStatus(File.ReadAllText(@"c:\git-vtorkalo\ASCOM.DSLR\testdata\status.txt")); var p = new ImageDataProcessor(); var detector = new CameraModelDetector(p); var data0 = p.ReadRaw(@"d:\ascomdev\git\ASCOM.DSLR\testdata\test.dng-0000.dng"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }