Exemplo n.º 1
0
        /// <summary>
        ///   OK
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonOk_Click(object sender, EventArgs e)
        {
            try
            {
                // Assembly Data for Tracking
                var m_a = new AssemblyInfo(Assembly.GetExecutingAssembly());

                // Usage Tracking
////         var m_usage = new clsUsageFree("spicey", m_a);
            }
            catch (Exception exception)
            {
                Debug.WriteLine(exception.Message);
            }

            // Progress Bar
            buttonOk.Hide();
            buttonCancel.Hide();
            ButtonHelp.Hide();
            progressBar1.Show();
            progressBar1.Minimum = 0;
            progressBar1.Maximum = 1;
            progressBar1.Value   = 0;
            ProcessData();
        }
Exemplo n.º 2
0
        /// <summary>
        ///   OK
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonOk_Click(object sender, EventArgs e)
        {
            try
            {
                // Assembly Data for Tracking
                var m_a = new AssemblyInfo(Assembly.GetExecutingAssembly());

                // Usage Tracking
////         var m_usage = new clsUsageFree("spicey", m_a);
            }
            catch (Exception exception)
            {
                Debug.WriteLine(exception.Message);
            }

            // Progress Bar Shuffle
            buttonOk.Hide();
            buttonCancel.Hide();
            ButtonHelp.Hide();

            _fList = _s.FamiliesToProcess(FolderPath, CheckSubFolders.Checked);

            progressBar1.Show();
            progressBar1.Minimum = 0;
            progressBar1.Value   = 0;
            progressBar1.Maximum = _fList.Count;
            groupBox2.Hide();
            label1.Show();
            FormBorderStyle = FormBorderStyle.None;
            SizeGripStyle   = SizeGripStyle.Hide;
            MinimumSize     = new Size(400, 80);
            Size            = new Size(400, 80);

            if (LastChanceExit())
            {
                ProcessData();
            }

            Close();
        }