private void but_wifi_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var wnd = new GetIpWnd { Ip = "192.168.1.1:4757" };
         if (wnd.ShowDialog() == true)
             ServiceProvider.DeviceManager.ConnectToServer(wnd.Ip);
     }
     catch (Exception exception)
     {
         Log.Error("Unable to connect DSLRDASHBOARDSERVER", exception);
         this.ShowMessageAsync("Error", "Unable to connect DSLRDASHBOARDSERVER " + exception.Message);
     }
 }
 private void but_wifi_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(ServiceProvider.Settings.WifiIp))
             ServiceProvider.Settings.WifiIp = "192.168.1.1";
         var wnd = new GetIpWnd();
         wnd.Owner = this;
         if (wnd.ShowDialog() == true)
         {
             ServiceProvider.DeviceManager.AddDevice(wnd.WifiDeviceProvider.Connect(wnd.Ip));
         }
     }
     catch (Exception exception)
     {
         Log.Error("Unable to connect to WiFi device", exception);
         this.ShowMessageAsync("Error", "Unable to connect to WiFi device " + exception.Message);
     }
 }