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

            ac.ParentWindow = this;
            this.Hide();
            ac.Show();
            updateData = true;
        }
예제 #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();
        }
예제 #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();
        }