public MainPage() { this.InitializeComponent(); ThePicker.FileTypeChoices.Add("Log file", new List <string> { ".log" }); Loaded += async(s, e) => { _logFile = await ThePicker.PickSaveFileAsync(); _reportingTimer.Tick += OnReportingTick; _watcher.Added += OnDeviceAdded; _watcher.EnumerationCompleted += OnDeviceEnumerationCompleted; _watcher.Updated += OnDeviceUpdated; _watcher.Removed += OnDeviceRemoved; _watcher.Start(); Log("Started"); }; }
private void OpenPicker(object sender, System.EventArgs e) { ThePicker.Focus(); }