public ServerState(string IPAdd, int port, ServerMain form) { this.form = form; serverSet(IPAdd, port); thread = new Thread(new ThreadStart(serverstart)); thread.Start(); }
public AddAction(ref ScheduledTask task, ClientThread client, ServerMain dialog) { InitializeComponent(); this.task = task; this.client = client; this.dialog = dialog; }
public CreateNewGroup(ref List<Group> groups, Database db, ServerMain s) { InitializeComponent(); this.groups = groups; this.db = db; this.p = s; }
public ChooseGroup(ref List<Group> groups, object client, ServerMain ad, Database db) { InitializeComponent(); this.db = db; this.groups = groups; this.client = (ClientThread)client; this.ad = ad; }
public ClientHandler(TcpClient tcpClient, ServerMain serverMain) { this.tcpClient = tcpClient; this.serverMain = serverMain; listenThread = new Thread(new ThreadStart(handler)); listenThread.Start(); }
private void SplashScreen_Load(object sender, EventArgs e) { this.Show(); Thread.Sleep(300); ServerMain.db = new Database(); ServerMain.groups = new List<Group>(); ServerMain.groups = ServerMain.db.GetGroups(); ServerMain.compDetails = ServerMain.db.GetKnownClients(); ServerMain sm = new ServerMain(); Thread.Sleep(1000); sm.ShowDialog(); this.Close(); }
public ServerConnectFour(ServerMain serverMain, string player1, string player2) : base(serverMain, player1, player2) { sets = 0; game = new List<List<int>>(); for (int column = 0; column < 8; column++) { List<int> col = new List<int>(); for (int row = 0; row < 6; row++) { col.Add(0); } game.Add(col); } }
/// <summary> /// Form Constructor /// </summary> /// <param name="ProcList">Current Known Processes, Built from parent form data grid</param> /// <param name="client">Client for commands to be sent too</param> /// <param name="parent">parent form</param> public NewProcess(ClientThread client, ServerMain parent, Database db) { s = parent; List<string> ProcList = db.GetProcesses(client.GetCompID()); ProcList.Sort(); InitializeComponent(); this.client = client; string clientName = client.GetComputerName().Split('\0')[0]; lstBoxProcesses.Items.Clear(); toolLblConnectedClient.Text += clientName; foreach(string procname in ProcList) { lstBoxProcesses.Items.Add(procname + ".exe"); } }
static void Main(string[] args) { ServerMain svc = new ServerMain(); //Create a new object of the server class svc.Start(); //Start the server }
public Game(ServerMain serverMain, String player1, String player2) { Players = new List<string> {player1, player2}; this.serverMain = serverMain; }
public ServerRPSLS(ServerMain serverMain, string player1, string player2) : base(serverMain, player1, player2) { ChosenHands = new Dictionary<string, Hands>(); Rounds = new List<Dictionary<string, Hands>>(); }
public AddNewTask(ServerMain dialog, ClientThread client) { InitializeComponent(); this.dialog = dialog; this.client = client; }