示例#1
0
        private void tstYearAmount_DoubleClick(object sender, EventArgs e)
        {
            UserDialog udForm = new UserDialog("Введите сумму на год", "За год:");

            udForm.AmountValue = int.Parse(tstYearAmount.Text);

            if (udForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _taxList.FillYearList(dtpMonthYear.Value.Year, udForm.AmountValue, false);
                _taxList.ApplayFilter();
                _edited = false;
            }
        }
示例#2
0
        private void generateYearToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UserDialog udForm = new UserDialog("Введите сумму на год", "За год:");

            udForm.AmountValue = int.Parse(tstYearAmount.Text);
            if (udForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                /*for( int i = 0; i < 12; i++ )
                 * {
                 *      blTaxList.FillList(new DateTime(dtpMonthYear.Value.Year, i + 1, 1),
                 *                                                      udForm.AmountValue/12, true);
                 *
                 * }
                 */
                _taxList.FillYearList(dtpMonthYear.Value.Year, udForm.AmountValue, true);
                _taxList.ApplayFilter();
                tstYearAmount.Text = _taxList.GetMoneyAmount(dtpMonthYear.Value.Year).ToString();
                _edited            = false;
            }
        }
示例#3
0
        private void tstYearAmount_DoubleClick(object sender, EventArgs e)
        {
            UserDialog udForm		= new UserDialog("Введите сумму на год", "За год:");
            udForm.AmountValue		= int.Parse(tstYearAmount.Text);

            if (udForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _taxList.FillYearList(dtpMonthYear.Value.Year, udForm.AmountValue, false);
                _taxList.ApplayFilter();
                _edited = false;

            }
        }
示例#4
0
        private void generateYearToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UserDialog udForm = new UserDialog("Введите сумму на год", "За год:");
            udForm.AmountValue = int.Parse(tstYearAmount.Text);
            if (udForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                /*for( int i = 0; i < 12; i++ )
                {
                    blTaxList.FillList(new DateTime(dtpMonthYear.Value.Year, i + 1, 1),
                                            udForm.AmountValue/12, true);

                }
                */
                _taxList.FillYearList(dtpMonthYear.Value.Year, udForm.AmountValue, true);
                _taxList.ApplayFilter();
                tstYearAmount.Text = _taxList.GetMoneyAmount(dtpMonthYear.Value.Year).ToString();
                _edited = false;
            }
        }