Inheritance: System.Windows.Forms.Form
示例#1
0
        private void eraseButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.ERASE, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if (af.Success)
                {
                    MessageBox.Show("Device Erased");
                }
            }
        }
示例#2
0
        private void verifyButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.VERIFY, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if (af.Success)
                {
                    MessageBox.Show("Flash verification succeeded.");
                }
            }
        }
示例#3
0
        private void programButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.PROGRAM, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if (af.Success)
                {
                    MessageBox.Show("Bootloading completed successfully.");
                }
            }
        }
示例#4
0
        private void verifyButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.VERIFY, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if(af.Success)
                    MessageBox.Show("Flash verification succeeded.");
            }
        }
示例#5
0
        private void programButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.PROGRAM, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if(af.Success)
                    MessageBox.Show("Bootloading completed successfully.");
            }
        }
示例#6
0
        private void eraseButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.ERASE, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if(af.Success)
                    MessageBox.Show("Device Erased");
            }
        }