예제 #1
0
파일: Program.cs 프로젝트: eott/featherlib
        static void Main()
        {
            Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            KeyValueConfigurationCollection settings = config.AppSettings.Settings;

            DbConnection connection = DbConnection.FromConfig(settings);
            Server server = new Server(connection);
            ServerConnector connector = new ServerConnector(server);
            Client client = new Client(connector);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new main(client));
        }
예제 #2
0
파일: Client.cs 프로젝트: eott/featherlib
 /// <summary>
 /// Constructor for Client.
 /// </summary>
 /// <param name="conn">The server connector the client should be
 /// using.</param>
 public Client(ServerConnector conn)
 {
     this.Connector = conn;
 }