Exemplo n.º 1
0
 public void InitData(MainWindowViewModel mainWindowViewModel, ServerListWindow serverListWindow)
 {
     _mainWindowViewModel = mainWindowViewModel;
     _serverListWindow    = serverListWindow;
     ServerList           = mainWindowViewModel.ServerList;
     RaisePropertyChanged(nameof(ServerList));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates and fetches master server list and shows window
 /// </summary>
 public ServerListView()
 {
     wind             = new ServerListWindow();
     wind.DataContext = servers;
     wind.serverListGrid.ItemsSource = Servers;
     wind.selectButton.Click        += buttonClicked;
     wind.closeButton.Click         += closeClicked;
 }
Exemplo n.º 3
0
        private void ShowServerListWindow(object sender, RoutedEventArgs e)
        {
            var serverListWindow = new ServerListWindow(GetViewModel())
            {
                Owner = this
            };

            serverListWindow.ShowDialog();
        }
Exemplo n.º 4
0
 private void InitUI()
 {
     if (m_serverPageList.Count <= 0)
     {
         InitServerList();
     }
     if (m_servetListWindow == null)
     {
         m_servetListWindow = GameObject.FindObjectOfType <ServerListWindow>();
     }
     if (m_serverTopWindow == null)
     {
         m_serverTopWindow = GameObject.FindObjectOfType <ServerTopWindow>();
     }
     if (m_btnserverOther == null)
     {
         m_btnserverOther = GameObject.Find("BtnServerOther");
     }
     if (m_btnserverBack == null)
     {
         m_btnserverBack = GameObject.Find("BtnBack");
     }
 }