public GtalkCommunication(MainWindow _mw, ChatWindows _cw) { cm = ContactManager.getInstance(); xmppCon = new XmppClientConnection(); mW = _mw; cW = _cw; }
public ChatWindows() { cm = ContactManager.getInstance(); listOfContact = new ObservableCollection<UserJabber>(); listOfConv = new ObservableCollection<MetroTalkMessage>(); InitializeComponent(); }
public static ContactManager getInstance() { lock (myLock) { if (instance == null) instance = new ContactManager(); return instance; } }
public MainWindow() { InitializeComponent(); cm = ContactManager.getInstance(); c = new ChatWindows(); gC = new GtalkCommunication(this,c); c.SetGC(gC); email.Text = (string)Settings.Default["email"]; password.Password = (string)Settings.Default["password"]; }