You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.2 KiB
82 lines
2.2 KiB
using GummingCommon;
|
|
using GummingControl;
|
|
using GummingSupport;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace Gumming
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for TemplateListView.xaml
|
|
/// </summary>
|
|
public partial class ExecuteView : UserControl
|
|
{
|
|
public ExecuteView()
|
|
{
|
|
InitializeComponent();
|
|
this.Loaded += ExecuteView_Loaded;
|
|
this.Unloaded += ExecuteView_Unloaded;
|
|
}
|
|
|
|
private void ExecuteView_Unloaded(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void ExecuteView_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
ExecuteViewModule _vm = null;
|
|
private ExecuteViewModule GetCurrentMv()
|
|
{
|
|
if (null == _vm)
|
|
{
|
|
_vm = this.DataContext as ExecuteViewModule;
|
|
}
|
|
return _vm;
|
|
}
|
|
|
|
private void listBox_PreviewKeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
e.Handled = true;
|
|
}
|
|
|
|
private void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
{
|
|
var selector = (System.Windows.Controls.Primitives.Selector)sender;
|
|
if (selector != null)
|
|
{
|
|
var item = (ContentControl)(selector).SelectedItem;
|
|
if (item != null)
|
|
{
|
|
var context = ((System.Windows.FrameworkElement)((ContentControl)item.Content).Content).DataContext;
|
|
if (context != null)
|
|
{
|
|
var model = (ViewModelBase)context;
|
|
if (model != null)
|
|
{
|
|
ViewModelLoad.SetActiveChildModel(model);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|