public MainWindow()
        {
            InitializeComponent();

            /* Connecting to the business tier */
            ChannelFactory <BIUserAccess> UserAccessFactory;
            NetTcpBinding tcpBinding = new NetTcpBinding();

            UserAccessFactory = new ChannelFactory <BIUserAccess>(tcpBinding, "net.tcp://localhost:8006/BusinessUser");
            iUserAccess       = UserAccessFactory.CreateChannel();
        }
        public UserAccount()
        {
            InitializeComponent();

            //displaying the userID
            UserIDHolder.Text = "UserID:" + App.UID.ToString();

            ChannelFactory <BIUserAccess> UserAccessFactory;                 /* Connecting to the business tier */
            NetTcpBinding tcpBinding = new NetTcpBinding();

            UserAccessFactory = new ChannelFactory <BIUserAccess>(tcpBinding, "net.tcp://localhost:8006/BusinessUser");
            this.iUserAccess  = UserAccessFactory.CreateChannel();

            //Selecting the user
            this.iUserAccess.SelectUser(App.UID);

            this.loadNames();
        }