private void AddCustomer_Click(object sender, RoutedEventArgs e)
 {
     AddCustomer ac = new AddCustomer();
     ac.ParentWindow = this;
     this.Hide();
     ac.Show();
     updateData = true;
 }
Example #2
0
        private void AddCustomer_Click(object sender, RoutedEventArgs e)
        {
            AddCustomer ac = new AddCustomer();

            ac.ParentWindow = this;
            this.Hide();
            ac.Show();
            updateData = true;
        }
Example #3
0
        private void NewCustomerButton_Click(object sender, RoutedEventArgs e)
        {
            AddCustomer ac = new AddCustomer();
            ac.ParentWindow = this;
            ac.CustomerAddCompleted += (s, es) =>
            {
                foreach (UIElement ele in OrderStackPanel.Children)
                {
                    if (ele is OrderControl)
                    {
                        (ele as OrderControl).PopulateCustomerComboBox();
                    }
                }
            };

            this.Hide();
            ac.Show();
        }
Example #4
0
        private void NewCustomerButton_Click(object sender, RoutedEventArgs e)
        {
            AddCustomer ac = new AddCustomer();

            ac.ParentWindow          = this;
            ac.CustomerAddCompleted += (s, es) =>
            {
                foreach (UIElement ele in OrderStackPanel.Children)
                {
                    if (ele is OrderControl)
                    {
                        (ele as OrderControl).PopulateCustomerComboBox();
                    }
                }
            };

            this.Hide();
            ac.Show();
        }