private void BTN_SaveGroupName_Click(object sender, RoutedEventArgs e)
        {
            GroupControl_Logic.SaveGroupName(groupId, TB_GroupName.Text);
            _client = clientLogic.LoadClient((_client.UserId));

            Main.LB_Groups.Items.Clear();
            foreach (var item in _client.Groups)
            {
                Main.LB_Groups.Items.Add(item);
            }
        }
        private void Grid_Loaded(object sender, RoutedEventArgs e)
        {
            TRS_Domain.GROUP.Data selectedGroup = GroupControl_Logic.GetGroupInformation(groupId);
            ChatLogic             chatlogic     = new ChatLogic();

            DisplayImage(selectedGroup.Img);

            TB_GroupName.Text      = selectedGroup.Name;
            CB_Region.ItemsSource  = Enum.GetNames(typeof(GroupControl_Logic.Regions));
            CB_Region.SelectedItem = selectedGroup._region;
            RTB_Description.Text   = selectedGroup.Description;
        }
        private void BTN_UploudImage_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog filedialog = new OpenFileDialog();

            filedialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            filedialog.Filter           = "All Files|*.*|JPEGs|*.jpg|Bitmaps|*.bmp";
            filedialog.FilterIndex      = 2;
            if (filedialog.ShowDialog() == true)
            {
                BitMap      = File.ReadAllBytes($@"{filedialog.FileName}");
                PicturePath = filedialog.FileName;
                ShowImage();
            }
            GroupControl_Logic.UpdateImg(groupId, BitMap);
        }
 private void BTN_SaveDescription_Click(object sender, RoutedEventArgs e)
 {
     GroupControl_Logic.SaveDescription(groupId, RTB_Description.Text);
 }
 private void BTN_ResetDescription_Click(object sender, RoutedEventArgs e)
 {
     RTB_Description.Text = GroupControl_Logic.GetGroupInformation(groupId).Description;
 }
 private void BTN_SaveGroupRegion_Click(object sender, RoutedEventArgs e)
 {
     GroupControl_Logic.SaveGroupRegion(groupId, CB_Region.SelectedValue.ToString());
 }