public FromMobileView() { InitializeComponent(); // add this part at the end of the "Login_btn_Click" method // we will hardcode the value for userid just in this sample code // delete the following line in the FAFOS application int userid = 1; //====sync _controller = new syncController(userid); this.Listen_btn.Click += new System.EventHandler(_controller.Listen_btn_Click); //====sync }
private void syncAndroid_Click(object sender, EventArgs e) { syncController my_sync_controller = new syncController(userid); my_sync_controller.syncToAndroid_Click(sender, e); }
private void btnSyncFromAndroid_Click(object sender, EventArgs e) { syncController my_sync_controller = new syncController(userid); my_sync_controller.syncFromAndroid_Click(sender, e); }