/// <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(); }
public static void RunSavingForm(MainForm form, int userId) { form.Hide(); IncomeForm savingForm = new IncomeForm(userId); savingForm.Closed += (s, args) => form.Close(); savingForm.Show(); }
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(); }
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(); } } }
private void Button1_Click(object sender, EventArgs e) { var incomePopup = new IncomeForm(); incomePopup.Show(); }
static public void OpenIncomeForm() { IncomeForm incomeForm = new IncomeForm(); incomeForm.Show(); }
private void IncomeButtonClicked(object sender, RoutedEventArgs e) { var incomeForm = new IncomeForm(this.dbAccess); incomeForm.Show(); }