コード例 #1
0
 private void product_ProductCreateProgress(object sender, ProductCreateEventArgs e)
 {
     labelStatus.Text   = "Creating file " + e.CurrentFile;
     progressBar1.Value = e.Count;
     Application.DoEvents();
     Thread.Sleep(200);
 }
コード例 #2
0
 private void product_ProductCreateInitializing(object sender, ProductCreateEventArgs e)
 {
     progressBar1.Maximum = e.Total;
     progressBar1.Value   = 0;
     labelStatus.Text     = "Initializing product...";
     Application.DoEvents();
 }
コード例 #3
0
        private void product_ProductCreateComplete(object sender, ProductCreateEventArgs e)
        {
            progressBar1.Value = 0;
            labelStatus.Text   = string.Empty;

            progressBar1.Visible        = false;
            labelStatus.Visible         = false;
            buttonCreateProduct.Enabled = true;

            Application.DoEvents();
            MessageBox.Show("Product '" + textProductName.Text + "' created and is ready for use.", "Product Created", MessageBoxButtons.OK, MessageBoxIcon.Information);
            this.Back();

            Program.CurrentDevSite          = textProductPath.Text;
            Program.CurrentDevMobileVersion = (option12.Checked ? MobileVersion.Version12 : MobileVersion.Version20);
        }