-
Notifications
You must be signed in to change notification settings - Fork 6
/
GUIManager.cs
61 lines (53 loc) · 1.46 KB
/
GUIManager.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
namespace KailleraNET
{
/// <summary>
/// Class that manages application GUI for specific window or instance
/// DEPRECATED
/// </summary>
class GUIManager
{
public static ObservableCollection<User> displayUsers = new ObservableCollection<User>();
public static ObservableCollection<User> DisplayUsers
{
get
{
return displayUsers;
}
}
static GUIManager()
{
}
/// <summary>
/// Processes the current user list
/// </summary>
/// <param name="users">List of users</param>
public static void UpdateUsers(UserList users)
{
DisplayUsers.Clear();
foreach (User u in users.users)
DisplayUsers.Add(u);
}
/// <summary>
/// Processes the current game list
/// </summary>
/// <param name="games">List of games</param>
internal static void UpdateGames(GameList games)
{
// throw new NotImplementedException();
}
internal static void UpdateChatText(User user, String text)
{
}
internal static void UpdateMOTDText(string text)
{
}
internal static void UpdateGameText(User user, String text)
{
}
}
}