private async void EditThread_Click(object sender, RoutedEventArgs e)
        {
            ThreadDialog dialog = new ThreadDialog();

            dialog.ViewModel.CurrentThread = new Models.Thread(0);
            dialog.ViewModel.CurrentThread.Update(ViewModel.CurrentThread, false);
            dialog.ViewModel.UpdateCategoriesWithCurrentThread();
            dialog.ViewModel.Users = ViewModel.Settings.Users;
            if (await dialog.ShowAsync() == ContentDialogResult.Primary)
            {
                ViewModel.CurrentThread.Update(dialog.ViewModel.CurrentThread);
                await ViewModel.SaveSettings();

                await ViewModel.SendUpdateThread(ViewModel.CurrentThread);
            }
        }
        private async void AddThread_Click(object sender, RoutedEventArgs e)
        {
            ThreadDialog dialog = new ThreadDialog();

            dialog.ViewModel.CurrentThread = new Models.Thread(ViewModel.Settings.NextThreadId);
            dialog.ViewModel.UpdateCategoriesWithCurrentThread();
            dialog.ViewModel.Users = ViewModel.Settings.Users;
            if (await dialog.ShowAsync() == ContentDialogResult.Primary)
            {
                if (await ViewModel.SendNewThread(dialog.ViewModel.CurrentThread))
                {
                    ViewModel.Settings.NextThreadId++;
                    ViewModel.Settings.Threads.Add(dialog.ViewModel.CurrentThread);
                    await ViewModel.SaveSettings();
                }
            }
        }