示例#1
0
        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
        }
示例#2
0
        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
        }
示例#3
0
 private void syncAndroid_Click(object sender, EventArgs e)
 {
     syncController my_sync_controller = new syncController(userid);
     my_sync_controller.syncToAndroid_Click(sender, e);
 }
示例#4
0
        private void btnSyncFromAndroid_Click(object sender, EventArgs e)
        {
            syncController my_sync_controller = new syncController(userid);

            my_sync_controller.syncFromAndroid_Click(sender, e);
        }