コード例 #1
0
ファイル: FromMobileView.cs プロジェクト: pkurowsk/NI-FAFOS
        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
ファイル: FromMobileView.cs プロジェクト: pkurowsk/NI-FAFOS
        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
ファイル: MainForm.cs プロジェクト: pkurowsk/NI-FAFOS
 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);
        }