コード例 #1
0
        /// <summary>
        /// Купить малый бизнес
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buySmall_Click(object sender, EventArgs e)
        {
            if (_smallBusiness == null)
            {
                _smallBusiness = new SmallBusiness();

                Button_Text(buySmall, "Параметры");
                Button_Enable(sellSmall, true);
            }
            else
            {
                var demandProfessionsForm = new Demand_Business("small");
                demandProfessionsForm.ShowDialog();
            }
        }
コード例 #2
0
        /// <summary>
        /// Купить средний бизнес
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buyMedium_Click(object sender, EventArgs e)
        {
            if (_mediumBusiness == null)
            {
                _mediumBusiness = new MediumBusiness();

                Button_Text(buyMedium, "Параметры");
                Button_Enable(sellMedium, true);
            }
            else
            {
                var demandProfessionsForm = new Demand_Business("medium");
                demandProfessionsForm.ShowDialog();
            }
        }
コード例 #3
0
        /// <summary>
        /// Купить крупный бизнес
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buyBig_Click(object sender, EventArgs e)
        {
            if (_bigBusiness == null)
            {
                _bigBusiness = new BigBusiness();

                Button_Text(buyBig, "Параметры");
                Button_Enable(sellBig, true);
            }
            else
            {
                var demandProfessionsForm = new Demand_Business("big");
                demandProfessionsForm.ShowDialog();
            }
        }