Der Login läuft jetzt mit RestSharp.
Die Akzentfarbe von den Chatgruppen vom Server wird berücksichtigt. Bilder sind im richtigen Seitenverhältnis skaliert. Ein Bild, das man gerade erst verschickt hat und das man öffnen will, bevor es auf dem Server angekommen ist, wird jetzt erst angezeigt, sobald es auf dem Server ist. Die Textbox für eine neue Nachricht wird nur angezeigt, wenn eine Gruppe ausgewählt ist und wenn man das Recht hat Nachrichten an diese Gruppe zu verschicken. Diverse Codeverbesserungen.
This commit is contained in:
21
ChatController/Utilities/Extensions/ControlExtensions.cs
Normal file
21
ChatController/Utilities/Extensions/ControlExtensions.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Threading;
|
||||
|
||||
namespace ChatController.Utilities.Extensions
|
||||
{
|
||||
public static class ControlExtensions
|
||||
{
|
||||
private static readonly Action _EmptyDelegate = delegate { };
|
||||
|
||||
public static void Dispatch(this DispatcherObject p, Action action)
|
||||
{
|
||||
p.Dispatcher.BeginInvoke(DispatcherPriority.Normal, action);
|
||||
}
|
||||
|
||||
public static void RefreshUI(this UIElement uiElement)
|
||||
{
|
||||
uiElement.Dispatcher.Invoke(DispatcherPriority.Render, _EmptyDelegate);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user