private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (is_connected == false)
     {
         connection.Content = "Disconnect";
         vm.Connect(ip.Text, int.Parse(port.Text));
         vm.SetFile(path.Text);
         is_connected = true;
     }
     else
     {
         connection.Content = "Connect";
         vm.Disconnect();
         is_connected = false;
     }
 }
Beispiel #2
0
 private void DisconnectButton_Click(object sender, RoutedEventArgs e)
 {
     vm.Disconnect();
 }