Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 public ID_Process(ClientProxy clientproxt)
 {
     factory = clientproxt;
     InitializeComponent();
 }
Beispiel #3
0
 public DeleteEntity(ClientProxy clientproxy)
 {
     factory = clientproxy;
     InitializeComponent();
 }
Beispiel #4
0
 public ChangeEntity1(ClientProxy Clientproxy, EnumType _type)
 {
     type  = _type;
     proxy = Clientproxy;
     InitializeComponent();
 }
 public addCounter(ClientProxy Clientproxy)
 {
     proxy = Clientproxy;
     InitializeComponent();
 }