private void GoIntoRegistrationButton_Click(object sender, RoutedEventArgs e)
        {
            System.Xml.XmlDictionaryReaderQuotas quotas = new System.Xml.XmlDictionaryReaderQuotas()
            {
                MaxArrayLength = int.MaxValue
            };
            NetTcpBinding binding = new NetTcpBinding()
            {
                MaxReceivedMessageSize = int.MaxValue,
                ReaderQuotas           = quotas
            };

            binding.Security.Mode = SecurityMode.None;
            Contract_Client contract = new Contract_Client(binding, new EndpointAddress("net.tcp://" + AppConfiguration.ConfigurationWorker.ServerIP + ":" + AppConfiguration.ConfigurationWorker.ServerPort.ToString()));

            try
            {
                if (contract.Registrate(LoginTextBox.Text, PasswordTextBox.Text))
                {
                    MessageBox.Show("Пользователь создан");
                }
                else
                {
                    MessageBox.Show("Не удалось зарегистрировать пользователя. Вероятно, пользователь с таким логином уже есть.");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            contract.Close();
        }