Exemple #1
0
        private void SetMessageWithNoProgress(string text, bool clearBgd)
        {
            Graphics g = CFGProgressBar.CreateGraphics();

            if (clearBgd)
            {
                g.Clear(Color.White);
            }
            g.DrawString(
                text,
                new Font("Arial", (float)8.25, FontStyle.Regular),
                Brushes.Black,
                new PointF(CFGProgressBar.Width / 8 - 10, CFGProgressBar.Height / 2 - 7));
        }
Exemple #2
0
        private void GenerateCFGButton_Click(object sender, EventArgs e)
        {
            if (GraphPictureBox.Image != null)
            {
                GraphPictureBox.Image = null;
            }
            CFGProgressBar.Value = 0;
            CFGProgressBar.Show();

            if (m_app.GenerateCFG(codeTextBox.Text))
            {
                toolStripButtonSave.Enabled = true;
            }

            CFGProgressBar.Value = 0;
        }