public ChatInterFace(Connction server, UserDetails user) { InitializeComponent(); this.server = server; this.user = user; boardcastView = new BoardcastView(server, user); boardcastView.Show(); server.Send("GetAllUser@" + user.Id); PopUser(); }
public BoardcastView(Connction server, UserDetails user) { InitializeComponent(); this.server = server; this.user = user; this.isAlivel = true; m_lock = new Object(); Thread thred1 = new Thread(GetBordCast); thred1.Start(); message = ""; }
private void buttonEnterToServer_Click(object sender, RoutedEventArgs e) { try { Connction connction = new Connction("127.0.0.1", 2212); labelErr.Content = "succes"; Login log = new Login(connction); log.Show(); this.Close(); } catch (Exception err) { labelErr.Content = err.Message; } }
public Login(Connction con) { InitializeComponent(); this.con = con; }
public Register(Connction server) { this.server = server; InitializeComponent(); url = @"https://firebasestorage.googleapis.com/v0/b/fir-project-50920.appspot.com/o/sharpoject%2Funknow.png?alt=media&token=e19506fe-7ecf-4b80-b262-ce5d0132d2f3"; }