예제 #1
0
파일: Form1.cs 프로젝트: Animakkon/Tree
 private void Calculate()
 {
     if (company == null || bank == null || !company.WTF)
     {
         return;
     }
     Prodection.DoSomething(bank, company);
     mountAvr.Text  = Prodection.MountPrice.ToString();
     martPrice.Text = bank.money.ToString();
     minChance.Text = company.changes[0].ToString();
     srChance.Text  = company.changes[1].ToString();
     maxChance.Text = company.changes[2].ToString();
 }
예제 #2
0
파일: Form1.cs 프로젝트: Animakkon/Tree
        private void Calculate()
        {
            if (company == null || bank == null || !company.WTF)
            {
                return;
            }
            this.groupBox4.Visible = minChance.Visible = srChance.Visible = maxChance.Visible =
                minMoney.Visible   = srMoney.Visible = maxMoney.Visible = label4.Visible = label5.Visible = mountAvr.Visible = martPrice.Visible = true;

            var res = Prodection.DoSomething(bank, company);

            mountAvr.Text  = Prodection.MountPrice.ToString();
            martPrice.Text = bank.money.ToString();

            minMoney.Text = res[0].ToString();
            srMoney.Text  = res[1].ToString();
            maxMoney.Text = res[2].ToString();

            minChance.Text += " " + company.changes[0].ToString();
            srChance.Text  += " " + company.changes[1].ToString();
            maxChance.Text += " " + company.changes[2].ToString();
        }