public PaymentTerminalForm() { RemotingConfiguration.Configure("PaymentTerminal.exe.config", false); InitializeComponent(); listServer = (IListSingleton)RemoteNew.New(typeof(IListSingleton)); updateTablesListView(); evRepeater = new AlterEventRepeater(); evRepeater.alterEvent += new AlterDelegate(DoAlterations); listServer.alterEvent += new AlterDelegate(evRepeater.Repeater); }
public Program() { RemotingConfiguration.Configure("Printer.exe.config", false); listServer = (IListSingleton)RemoteNew.New(typeof(IListSingleton)); evRepeater = new AlterEventRepeater(); evRepeater.alterEvent += new AlterDelegate(DoAlterations); listServer.alterEvent += new AlterDelegate(evRepeater.Repeater); tables = listServer.getTables(); Console.ReadLine(); }
public DinningRoomForm() { RemotingConfiguration.Configure("DinningRoom.exe.config", false); InitializeComponent(); listServer = (IListSingleton)RemoteNew.New(typeof(IListSingleton)); startTablesComboBox(); startProductsComboBox(); updateOrdersListView(); evRepeater = new AlterEventRepeater(); evRepeater.alterEvent += new AlterDelegate(DoAlterations); listServer.alterEvent += new AlterDelegate(evRepeater.Repeater); }
public KitchenBarForm(KitchenBarForm.Type type) { RemotingConfiguration.Configure("KitchenBar.exe.config", false); InitializeComponent(); listServer = (IListSingleton)RemoteNew.New(typeof(IListSingleton)); if (type.Equals(Type.KITCHEN)) { this.ProductType = Product.Type.FOOD; this.Text = "Kitchen"; } else if (type.Equals(Type.BAR)) { this.ProductType = Product.Type.DRINK; this.Text = "Bar"; } updateOrdersListView(); evRepeater = new AlterEventRepeater(); evRepeater.alterEvent += new AlterDelegate(DoAlterations); listServer.alterEvent += new AlterDelegate(evRepeater.Repeater); }