示例#1
0
 public Server(ElectionAuthority electionAuthority)
 {
     clientSockets = new Dictionary <TcpClient, string>();
     this.encoder  = new ASCIIEncoding();
     this.parser   = new Parser(electionAuthority);
 }
示例#2
0
文件: Parser.cs 项目: mskwarek/PKRY
 public Parser(ElectionAuthority electionAuthority)
 {
     this.electionAuthority = electionAuthority;
 }
示例#3
0
文件: Form1.cs 项目: mskwarek/PKRY
 public void loadConfig(string filename)
 {
     configuration.loadConfiguration(filename);
     electionAuthority = new ElectionAuthority(this.configuration, this);
     this.electionAuthority.loadCandidateList("C:\\Users\\mskwarek\\Documents\\Visual Studio 2015\\Projects\\PKRY\\Config\\CandidateList.xml");
 }