コード例 #1
0
        private void Redo_CanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            ATabItem tab = (ATabItem)MyTabs.SelectedItem;

            if (tab.TabName == "Design")
            {
                DesignWindow.Redo_CanExecute(sender, e);
            }
            else if (tab.TabName == "Panels")
            {
                LayoutWindow.LayoutControl.Redo_CanExecute(sender, e);
            }
        }
コード例 #2
0
        private void saveClick(object sender, RoutedEventArgs e)
        {
            ATabItem tab = (ATabItem)MyTabs.SelectedItem;

            if (tab.TabName == "Design")
            {
                DesignWindow.saveClick(sender, e);
            }
            else if (tab.TabName == "Panels")
            {
                LayoutWindow.saveClick(sender, e);
            }
        }