Пример #1
0
        private void Button3_Click(object sender, EventArgs e)
        {
            var cb = this.Controls.OfType <RadioButton>().FirstOrDefault(r => r.Checked);

            this.mData = cb.Text;
            AppUtilities.CreateOrUpdateDict("step7", this.mData);
            LoadingSpinner ls = new LoadingSpinner(this, AppMessages.messages["document_created"]);

            try
            {
                ls.show();
                DocumentCreator dc       = new DocumentCreator();
                string          proPath  = dc.createFinancialPackage();
                string          tempPath = Path.Combine(ProjectConfig.projectBase, "~temp_" + AppUtilities.mainData["step5"].ToString());
                ProjectLoader.load(proPath, tempPath);
                t = 1;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Exception: " + ex.Message);
            }
            finally
            {
                ls.hide();
                this.Close();
                MainWindow mf = new MainWindow();
                mf.Show();
            }
        }
Пример #2
0
        private void Button3_Click(object sender, EventArgs e)
        {
            var cb = this.Controls.OfType <RadioButton>().FirstOrDefault(r => r.Checked);

            this.mData = cb.Text;
            AppUtilities.CreateOrUpdateDict("step1", this.mData);
            if (this.mData == "Quick Plan")
            {
                QStep2Dialog qst2 = new QStep2Dialog();
                this.Hide();
                qst2.ShowDialog();
            }
            else if (this.mData == "Standard Plan")
            {
                SStep2Dialog st2 = new SStep2Dialog();
                this.Hide();
                st2.ShowDialog();
            }
            else if (this.mData == "Financial Plan")
            {
                FStep2Dialog fst2 = new FStep2Dialog();
                this.Hide();
                fst2.ShowDialog();
            }
        }
Пример #3
0
        private void Button3_Click(object sender, EventArgs e)
        {
            FStep3Dialog st3 = new FStep3Dialog();

            this.mData = this.comboBox1.SelectedIndex;
            AppUtilities.CreateOrUpdateDict("step2", this.mData);
            this.Hide();
            st3.ShowDialog();
        }
Пример #4
0
        private void Button3_Click(object sender, EventArgs e)
        {
            SStep4Dialog st4 = new SStep4Dialog();
            var          cb  = this.Controls.OfType <RadioButton>().FirstOrDefault(r => r.Checked);

            this.mData = cb.Text;
            AppUtilities.CreateOrUpdateDict("step3", this.mData);
            this.Hide();
            st4.ShowDialog();
        }
Пример #5
0
        private void Button3_Click(object sender, EventArgs e)
        {
            this.mData["swot"] = checkBox1.Checked;
            this.mData["web"]  = checkBox2.Checked;
            AppUtilities.CreateOrUpdateDict("step4", this.mData);
            Debug.WriteLine(AppUtilities.mainData);
            QStep5Dialog st7 = new QStep5Dialog();

            this.Hide();
            st7.ShowDialog();
        }
Пример #6
0
        private void Button3_Click(object sender, EventArgs e)
        {
            String month = comboBox1.SelectedItem.ToString();
            String year  = comboBox2.SelectedItem.ToString();

            this.mData = year + "-" + month + '-' + "01";
            AppUtilities.CreateOrUpdateDict("step4", this.mData);
            FStep5Dialog st5 = new FStep5Dialog();

            this.Hide();
            st5.ShowDialog();
        }
Пример #7
0
 private void Button3_Click(object sender, EventArgs e)
 {
     this.mData = textBox1.Text;
     if (this.mData == "")
     {
         label5.Text = "This field is required !";
     }
     else
     {
         label5.Text = "";
         AppUtilities.CreateOrUpdateDict("step5", this.mData);
         FStep6Dialog st6 = new FStep6Dialog();
         this.Hide();
         st6.ShowDialog();
     }
 }