public void Start() { NetTcpBinding binding = new NetTcpBinding(); //192.168.0.17 - komp string address = "net.tcp://localhost:65000/ILoadBalancerService"; proxy = new ClientProxy(binding, new EndpointAddress(new Uri(address))); _type = proxy.Detekcija(); if (_type == EnumType.Customer) { this.buttonProcessIdB.IsEnabled = true; } if (_type == EnumType.Administrator) { this.buttonProcessIdB.IsEnabled = true; this.ChangeCounterB.IsEnabled = true; this.AddEntityB.IsEnabled = true; this.DeleteEntityB.IsEnabled = true; } if (_type == EnumType.Operator) { this.ChangeCounterB.IsEnabled = true; } }
public ID_Process(ClientProxy clientproxt) { factory = clientproxt; InitializeComponent(); }
public DeleteEntity(ClientProxy clientproxy) { factory = clientproxy; InitializeComponent(); }
public ChangeEntity1(ClientProxy Clientproxy, EnumType _type) { type = _type; proxy = Clientproxy; InitializeComponent(); }
public addCounter(ClientProxy Clientproxy) { proxy = Clientproxy; InitializeComponent(); }