Example #1
0
 public Menu(string login)
 {
     client = new ServiceChatClient(new System.ServiceModel.InstanceContext(this));
     user   = client.GetUser(login);
     InitializeComponent();
     GMenu               = this;
     tSubname.Content    = ("" + user.Name[0] + user.Surname[0]).ToUpper();
     NameSurname.Content = user.Name + " " + user.Surname;
     Phone.Content       = user.Phone.Substring(0, 4) + " " + user.Phone.Substring(4, 2) + " " + user.Phone.Substring(6, 3) + " " + user.Phone.Substring(8, 4);
 }
Example #2
0
        public Messager(string login)
        {
            client = new ServiceChatClient(new System.ServiceModel.InstanceContext(this));

            Users user = client.GetUser(login);

            _user = user;
            InitializeComponent();
            Menu.NavigationService.Navigate(new LeftMenu(user));
            GlobalFrame     = Menu;
            GlobalBodyFrame = ChatMessage;
            GlobalCanvas    = Canvas;
        }