コード例 #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);
		}