private void NewItemButtonItemClick(object sender, ItemClickEventArgs e) { XtraForm newForm = new NewExpenseView(new NewExpenseController()); newForm.Owner = this; newForm.Show(); }
private bool AddRecord() { var newExpenseView = new NewExpenseView(new NewExpenseController()); newExpenseView.Show(this); return(true); }
private void EditRecord() { var focusedRow = gridView1.FocusedRowHandle; var expense = (Expense)gridView1.GetRow(focusedRow); var newExpenseView = new NewExpenseView(expense); newExpenseView.Show(this); }
private bool AddRecord() { var newExpenseView = new NewExpenseView(new NewExpenseController()); newExpenseView.Show(this); return true; }