예제 #1
0
        private void NewItemButtonItemClick(object sender, ItemClickEventArgs e)
        {
            XtraForm newForm = new NewExpenseView(new NewExpenseController());

            newForm.Owner = this;
            newForm.Show();
        }
예제 #2
0
        private bool AddRecord()
        {
            var newExpenseView = new NewExpenseView(new NewExpenseController());

            newExpenseView.Show(this);
            return(true);
        }
예제 #3
0
        private void EditRecord()
        {
            var focusedRow     = gridView1.FocusedRowHandle;
            var expense        = (Expense)gridView1.GetRow(focusedRow);
            var newExpenseView = new NewExpenseView(expense);

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