public MainWindow() { InitializeComponent(); Instance = this; this.MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight; System.Net.ServicePointManager.DefaultConnectionLimit = 100; InitAMVC(); Packets.SendPacket <GetFriendIDs>(); Packets.SendPacket <GetNotifications>(); Packets.SendPacket <GetSelfID>(); Packets.SendPacket <GetSelfProfile>(); Packets.SendPacket <RecentConversations>(); Sticker.Load(() => { Packets.SendPacket <GetBoughtStickerPacksRequest>(); Packets.SendPacket <GetNearestSickerRequest>(); }); SetNotificationDotState(false); SelfAvatar.ClickTrigger.Visibility = Visibility.Hidden; SelfAvatar.ClickTrigger.IsEnabled = false; SelfAvatar.IsOnline = true; SelfAvatar.UpdateAllInstance(); ProfileContext.BtnSignOut.Click += BtnSignOut_Click; }