Пример #1
0
        public void RotClockWise(object sender, RoutedEventArgs e)
        {
            LayoutView lv    = this.DataContext as LayoutView;
            double     theta = lv.column.Theta - 90;

            if (theta == -90)
            {
                theta = 270;
            }
            if (theta == 360)
            {
                theta = 0;
            }
            lv.column.Theta = theta;
            lv.myViewModel.UpdateDesign();
        }
Пример #2
0
        public void FireDisplayChanged(object sender, RoutedEventArgs e)
        {
            LayoutView lv = this.DataContext as LayoutView;

            lv.DisplayFire = !lv.DisplayFire;
        }