Exemplo n.º 1
0
 void LoadClientData()
 {
     diskManager          = new DiskManager("C:\\Work\\UserData.dat");
     m_viewModel.ChatTabs = ChatTabsToXmlConverter.ParseUserData(
         m_cryptoManager.DecryptUserDataB64(diskManager.LoadUserSettingsFromDisk(m_cryptoManager.GetUser())));
     foreach (ChatTab element in m_viewModel.ChatTabs)
     {
         if (element.chatType == ChatInstanceType.personal)
         {
             m_viewModel.SetOnlineStatus(element.Name, StartNewChatSession(element.Name));
         }
     }
 }