public CWarehouseService() { string connection = ConfigurationManager.ConnectionStrings["WarehouseDB"].ConnectionString; database = String.Format(connection, AppDomain.CurrentDomain.BaseDirectory); proxy = new StoreDualServiceClient(new InstanceContext(this)); }
CPrinter() { proxy = new StoreDualServiceClient(new InstanceContext(this)); proxy.Subscribe(); // Register the exit handler SetConsoleCtrlHandler(Handler, true); }
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); }