Exemple #1
0
 /// <summary>
 /// Creates a new controller
 /// </summary>
 public Controller()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     this.welcomeForm   = new WelcomeForm();
     this.mainForm      = new MainForm();
     this.networkClient = new VoterClient("Client: " + System.Net.Dns.GetHostName());
     this.model         = new Model();
     this.currentVoter  = null;
 }
Exemple #2
0
 /// <summary>
 /// Creates a new controller
 /// </summary>
 public Controller()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     this.welcomeForm = new WelcomeForm();
     this.mainForm = new MainForm();
     this.networkClient = new VoterClient("Client: " + System.Net.Dns.GetHostName());
     this.model = new Model();
     this.currentVoter = null;
 }