コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            //ResetBoard(cmbPorts.Text);

            xioBootloader myBootloader = new xioBootloader(cmbPorts.Text, txtFile.Text, new Point(this.Left+50, this.Top + 50));
            myBootloader.BootloadFinished += new xioBootloader.OnBootloadFinished(myBootloader_BootloadFinished);

            try
            {
                myBootloader.DoBootload();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + "\n" + ex.StackTrace, "Error occured");
            }
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            //ResetBoard(cmbPorts.Text);

            xioBootloader myBootloader = new xioBootloader(cmbPorts.Text, txtFile.Text, new Point(this.Left + 50, this.Top + 50));

            myBootloader.BootloadFinished += new xioBootloader.OnBootloadFinished(myBootloader_BootloadFinished);

            try
            {
                myBootloader.DoBootload();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + "\n" + ex.StackTrace, "Error occured");
            }
        }