Пример #1
0
        private void OnModifyServer(object sender, RoutedEventArgs e)
        {
            ServerInfoWin WindowsFrom = new ServerInfoWin();
            ServerInfo    obj         = ServerList.SelectedItem as ServerInfo;

            if (obj != null)
            {
                WindowsFrom.EditType = CommandMode.Modify;
                WindowsFrom.SetServerInfo(obj);
            }
            WindowsFrom.ShowDialog();
            LoadGameInfoList(obj.GameID);
        }
Пример #2
0
        private void OnCreateServer(object sender, RoutedEventArgs e)
        {
            ServerInfoWin WindowsFrom = new ServerInfoWin();
            GameInfo      obj         = AraeList.SelectedItem as GameInfo;

            if (obj == null || obj.ID == 0)
            {
                return;
            }
            WindowsFrom.EditType = CommandMode.Insert;
            WindowsFrom.GameId   = obj.ID;
            WindowsFrom.ShowDialog();
            LoadGameInfoList(obj.ID);
        }
Пример #3
0
		private void OnModifyServer(object sender, RoutedEventArgs e)
		{
			ServerInfoWin WindowsFrom = new ServerInfoWin();
 			ServerInfo obj = ServerList.SelectedItem as ServerInfo;
 			if (obj != null)
 			{
				WindowsFrom.EditType = CommandMode.Modify;
				WindowsFrom.SetServerInfo(obj);
 			}
 			WindowsFrom.ShowDialog();
			LoadGameInfoList(obj.GameID);
		}
Пример #4
0
		private void OnCreateServer(object sender, RoutedEventArgs e)
		{
			ServerInfoWin WindowsFrom = new ServerInfoWin();
			GameInfo obj = AraeList.SelectedItem as GameInfo;
			if (obj == null || obj.ID == 0)
				return;
			WindowsFrom.EditType = CommandMode.Insert;
			WindowsFrom.GameId = obj.ID;
			WindowsFrom.ShowDialog();
			LoadGameInfoList(obj.ID);
		}