Beispiel #1
0
        public EditRowBilling()
        {
            EditRowBilling.newWindowOpened += handleNewWindow;
            MainWindow.mainClosed          += handleMainClose;
            EditRowBilling.newWindowOpened(this, null);

            InitializeComponent();
        }
Beispiel #2
0
        public EditRowBilling(string description, string cost)
        {
            EditRowBilling.newWindowOpened += handleNewWindow;
            MainWindow.mainClosed          += handleMainClose;
            EditRowBilling.newWindowOpened(this, null);

            InitializeComponent();
            this.editButton.Click += EditButton_Click;
        }
Beispiel #3
0
        private void editBillingButton_Click(object sender, RoutedEventArgs e)
        {
            if (descriptCostDataGrid.SelectedItem != null)
            {
                Billing editBilling = (Billing)descriptCostDataGrid.SelectedItem;

                EditRowBilling editBillingWindow = new EditRowBilling(editBilling.Description, editBilling.Cost);
                editBillingWindow.Owner = this;
                editBillingWindow.Show();
            }
        }