public MainWindow(String login, String password) { InitializeComponent(); ds = new DutaServices(this); me = ds.Login(login, password); App.ds = ds; if (me.logged_in == 1) { myState.SelectedIndex = 0; contactList = ds.getContactList(); generateContactList(contactList); userData = ds.getUserData(me.user_id); description.Text = userData.description; Thread trd = new Thread(new ThreadStart(this.messageThread)); trd.IsBackground = true; trd.Start(); Thread trd_state = new Thread(new ThreadStart(this.statusThread)); trd_state.IsBackground = true; trd_state.Start(); } else { } }
public MessangerBox(String userName, List<GetContactListResult> contactList, DutaServices ds, int me_id,List<int> conferrentionList=null) { InitializeComponent(); this.ds = ds; this.contactList = contactList; this.me_id = me_id; newTab(userName, conferrentionList); }