예제 #1
0
        public CWarehouseService()
        {
            string connection = ConfigurationManager.ConnectionStrings["WarehouseDB"].ConnectionString;

            database = String.Format(connection, AppDomain.CurrentDomain.BaseDirectory);
            proxy    = new StoreDualServiceClient(new InstanceContext(this));
        }
예제 #2
0
        CPrinter()
        {
            proxy = new StoreDualServiceClient(new InstanceContext(this));
            proxy.Subscribe();

            // Register the exit handler
            SetConsoleCtrlHandler(Handler, true);
        }
예제 #3
0
 public StoreClientForm()
 {
     InitializeComponent();
     proxy = new StoreDualServiceClient(new InstanceContext(this));
     newOrderPanel.Parent    = this;
     stockPanel.Parent       = this;
     stockPanel.Location     = newOrderPanel.Location;
     requestsPanel.Parent    = this;
     requestsPanel.Location  = newOrderPanel.Location;
     ordersPanel.Parent      = this;
     ordersPanel.Location    = newOrderPanel.Location;
     newClientPanel.Parent   = newOrderPanel;
     regClientPanel.Parent   = newOrderPanel;
     newClientPanel.Location = regClientPanel.Location;
     newClientPanel.Visible  = false;
     setVisibility(0);
 }