Пример #1
0
        void ClickSidesButton(object sender, RoutedEventArgs e)
        {
            SelectSides    selectSides = new SelectSides();
            OrderComponent order       = this.FindAncestor <OrderComponent>();

            order.Swap(selectSides);
        }
Пример #2
0
        void ChangeSideClick(object sender, RoutedEventArgs e)
        {
            SelectSides    custom = new SelectSides(combo, true);
            OrderComponent order  = this.FindAncestor <OrderComponent>();

            order.Swap(custom);
        }