using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace Srez { /// /// Логика взаимодействия для Window1.xaml /// public partial class Window1 : Window { public Window1() { InitializeComponent(); } private void CloseSessionBtn_Click(object sender, RoutedEventArgs e) { WsClient.WsClientConnect(); WsClient.WsClientSendMessage($"UpdateUserSession {Session.IdSession}"); WsClient.WsClientClose(); Application.Current.Shutdown(); } } }