Пример #1
0
        /// <summary>
        /// Нажатие на кнопку "Категории доходов"
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void IncomeItem_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            IncomeForm winI = new IncomeForm(this);

            winI.Closed += Window_Closed;
            winI.Show();
        }
Пример #2
0
        public static void RunSavingForm(MainForm form, int userId)
        {
            form.Hide();
            IncomeForm savingForm = new IncomeForm(userId);

            savingForm.Closed += (s, args) => form.Close();
            savingForm.Show();
        }
Пример #3
0
        private void btn1_click(object sender, EventArgs e) // 매출 현황
        {
            parentForm.Visible = false;

            tagetForm = new IncomeForm();
            tagetForm.StartPosition = FormStartPosition.CenterParent;
            tagetForm.FormClosed   += new FormClosedEventHandler(Exit_click);
            tagetForm.Show();
        }
Пример #4
0
        private void EditTransactionClicked(object sender, RoutedEventArgs e)
        {
            var transaction = this.transactions.Where(t => t.InvoiceNumber == (sender as Button).Tag.ToString()).First <Transactions>();

            if (transaction != null)
            {
                if (transaction is Income)
                {
                    var incomeForm = new IncomeForm(this.dbAccess, (Income)transaction);
                    incomeForm.Show();
                }
                else
                {
                    var expenseForm = new ExpenseForm(this.dbAccess, (Expense)transaction);
                    expenseForm.Show();
                }
            }
        }
Пример #5
0
        private void Button1_Click(object sender, EventArgs e)
        {
            var incomePopup = new IncomeForm();

            incomePopup.Show();
        }
Пример #6
0
        static public void OpenIncomeForm()
        {
            IncomeForm incomeForm = new IncomeForm();

            incomeForm.Show();
        }
Пример #7
0
        private void IncomeButtonClicked(object sender, RoutedEventArgs e)
        {
            var incomeForm = new IncomeForm(this.dbAccess);

            incomeForm.Show();
        }