/// <summary> /// Initializes the ServerNetwork. /// </summary> /// <param name="applicationController"></param> /// <param name="maximumUser"></param> /// <param name="iPAddress"></param> /// <param name="port"></param> public ServerNetwork(ApplicationController applicationController, int maximumUser, IPAddress iPAddress, int port) : base(applicationController) { this.MaximumUser = maximumUser; this.IPAddress = iPAddress; this.Port = port; }
public MultiplayerModeClientView(ApplicationController applicationController) { InitializeComponent(); this.ApplicationController = applicationController; this.clientJoinGameRoomWidget1.Initialize(this.ApplicationController); this.multiplayerChatWidget1.Initialize(this.ApplicationController); }
/// <summary> /// WarningView constructor. /// </summary> /// <param name="applicationController"></param> /// <param name="bootFailures"></param> public WarningView(ApplicationController applicationController, List<String> bootFailures) { InitializeComponent(); this.ApplicationController = applicationController; this.listBoxBootFailures.DataSource = bootFailures; this.listBoxBootFailures.Refresh(); }
public void Initialize(ApplicationController applicationController) { this.ApplicationController = applicationController; foreach(IPAddress ipAddress in this.ApplicationController.GetAvailableHosts()) { this.comboBoxIps.Items.Add(ipAddress); } }
public MultiplayerModeHostView(ApplicationController applicationController, BindingList<Map> mapList) { InitializeComponent(); this.ApplicationController = applicationController; this.manageMapMultiplayerHostWidget1.Initialize(this.ApplicationController, mapList); this.hostConfigurationWidget1.Initialize(this.ApplicationController); this.multiplayerChatWidget1.Initialize(this.ApplicationController); }
public SingleplayerModeView(ApplicationController applicationController, BindingList<Map> mapList) { InitializeComponent(); this.ApplicationController = applicationController; this.MapList = mapList; this.manageMapWidget1.SetMapBinding(this.MapList); this.RestartAfterClose = true; this.BringToFront(); }
public ClientNetwork(ApplicationController applicationController, IPAddress ipAddressServer, int portServer, IPAddress ipAddressClient, int portClient) : base(applicationController) { this.IPAddressServer = ipAddressServer; this.PortServer = portServer; this.IPAddressClient = ipAddressClient; this.PortClient = portClient; this.ClientAsServer = null; this.ServerSocketReceiveData = null; this.ServerSocketSendData = null; }
public StartView(ApplicationController applicationController, int mapCount) { InitializeComponent(); this.ApplicationController = applicationController; this.aboutWidget.Visible = true; // Default this.MapCount = mapCount; if (!this.HasPublishedMaps()) { ToolTip ToolTip1 = new ToolTip(); ToolTip1.SetToolTip(this.rMenuButtonSingleplayerMode, "In order to use the singleplayer mode at least one map is required."); } }
/// <summary> /// SingleplayerModeGameView constructor. /// </summary> /// <param name="applicationController"></param> /// <param name="car"></param> /// <param name="map"></param> public SingleplayerModeGameView(ApplicationController applicationController, Car car, Map map) { InitializeComponent(); this.ApplicationController = applicationController; this.Car = car; this.Map = map; this.RawMapGrid = this.Map.GetDrawMapGrid(); this.DrawUtility = new DrawUtility(); this.CustomInitializeComponent(); this.Refresh(); this.RunGame(); }
public MapCreatorView(ApplicationController applicationController) { InitializeComponent(); this.applicationController = applicationController; this.openFileDialogLoadMapSettings.InitialDirectory = this.applicationController.GetApplicationRootPath(); this.openFileDialogLoadMapPicture.InitialDirectory = this.applicationController.GetApplicationRootPath(); this.folderBrowserDialogWholeMap.SelectedPath = this.applicationController.GetApplicationRootPath(); this.CarStartPositions = new BindingList<Node>(); this.listBoxStartpositions.DataSource = this.CarStartPositions; this.listBoxStartpositions.ValueMember = "ListDisplay"; this.RoundFinishedPositions = new BindingList<Node>(); this.listBoxEndpositions.DataSource = this.RoundFinishedPositions; this.listBoxEndpositions.ValueMember = "ListDisplay"; this.ForbiddenPositions = new BindingList<Node>(); this.listBoxForbiddenPositions.DataSource = this.ForbiddenPositions; this.listBoxForbiddenPositions.ValueMember = "ListDisplay"; }
internal void Initialize(ApplicationController applicationController, BindingList<Map> mapList) { this.ApplicationController = applicationController; this.manageMapWidget1.SetMapBinding(mapList); }
static void Main(string[] applicationArguments) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ApplicationController applicationController = new ApplicationController(applicationArguments); }
public Network(ApplicationController applicationController) { this.ApplicationController = applicationController; this.IsActive = false; }
public RepairSuccessfulView(ApplicationController applicationController) { InitializeComponent(); this.ApplicationController = applicationController; }
public void Initialize(ApplicationController applicationController) { this.ApplicationController = applicationController; this.textBoxIpServer.Text = ""; }