Пример #1
0
        public MainPage()
        {
            InitializeComponent();

            outStr            = new StringBuilder();
            richTextBox1.Text = "";

            efuse      = new ToolEfuse();
            tool       = new ToolTool();
            secure     = new ToolSecure();
            partition  = new ToolPartition();
            partition2 = new ToolPart();

            efuse.ConsoleEvent      += HandleCustomEvent;
            tool.ConsoleEvent       += HandleCustomEvent;
            secure.ConsoleEvent     += HandleCustomEvent;
            partition.ConsoleEvent  += HandleCustomEvent;
            partition2.ConsoleEvent += HandleCustomEvent;

            richTextBoxFlashHex.MouseWheel  += RichTextBox_MouseWheel;
            richTextBoxFlashLine.MouseWheel += RichTextBox_MouseWheel;
            richTextBoxFlashData.MouseWheel += RichTextBox_MouseWheel;

            ExpertComboboxTool.SelectedIndex = 0;
        }
Пример #2
0
        public PartTool(int flashMB, ToolPartition partitionTool)
        {
            InitializeComponent();
            flashSizeBytes = flashMB * 1024 * 1024;
            flashSizeKB    = flashMB * 1024;

            progressBar1.Value   = 0;
            progressBar1.Maximum = flashSizeKB;

            partition = partitionTool;

            this.Width /= 2;
        }