From 7335f9bdb8aea3dc31fb8f870566e5ccde9dabdd Mon Sep 17 00:00:00 2001 From: wcko87 Date: Tue, 9 May 2017 19:38:45 +0800 Subject: [PATCH] WIP - Variable Export --- rabi_splitter_WPF/ExportPanel.xaml | 28 ---- rabi_splitter_WPF/ExportPanel.xaml.cs | 39 ----- rabi_splitter_WPF/MainContext.cs | 2 +- rabi_splitter_WPF/MainWindow.xaml | 177 ++++++++++---------- rabi_splitter_WPF/MainWindow.xaml.cs | 4 + rabi_splitter_WPF/VariableExportContext.cs | 43 +++++ rabi_splitter_WPF/VariableExportSetting.cs | 61 +++++-- rabi_splitter_WPF/VariableExportTab.xaml | 39 +++++ rabi_splitter_WPF/VariableExportTab.xaml.cs | 46 +++++ rabi_splitter_WPF/rabi_display.csproj | 11 +- 10 files changed, 280 insertions(+), 170 deletions(-) delete mode 100644 rabi_splitter_WPF/ExportPanel.xaml delete mode 100644 rabi_splitter_WPF/ExportPanel.xaml.cs create mode 100644 rabi_splitter_WPF/VariableExportContext.cs create mode 100644 rabi_splitter_WPF/VariableExportTab.xaml create mode 100644 rabi_splitter_WPF/VariableExportTab.xaml.cs diff --git a/rabi_splitter_WPF/ExportPanel.xaml b/rabi_splitter_WPF/ExportPanel.xaml deleted file mode 100644 index ba5ce5b..0000000 --- a/rabi_splitter_WPF/ExportPanel.xaml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/rabi_splitter_WPF/ExportPanel.xaml.cs b/rabi_splitter_WPF/ExportPanel.xaml.cs deleted file mode 100644 index 621a2e3..0000000 --- a/rabi_splitter_WPF/ExportPanel.xaml.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -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 rabi_splitter_WPF -{ - /// - /// Interaction logic for ExportPanel.xaml - /// - public partial class ExportPanel : UserControl - { - public object VariableExportObject - { - get { return (object)GetValue(VariableExportObjectProperty); } - set { SetValue(VariableExportObjectProperty, value); } - - } - - public static readonly DependencyProperty VariableExportObjectProperty = - DependencyProperty.Register("VariableExportObject", typeof(object), - typeof(VariableExportSetting), new PropertyMetadata(null)); - - public ExportPanel() - { - InitializeComponent(); - this.MainPanel.DataContext = this; - } - } -} diff --git a/rabi_splitter_WPF/MainContext.cs b/rabi_splitter_WPF/MainContext.cs index 366471f..db25e70 100644 --- a/rabi_splitter_WPF/MainContext.cs +++ b/rabi_splitter_WPF/MainContext.cs @@ -128,7 +128,7 @@ namespace rabi_splitter_WPF } } - class DebugContext : INotifyPropertyChanged + public class DebugContext : INotifyPropertyChanged { private int _entityAnalysisIndex; private bool _bossEvent; diff --git a/rabi_splitter_WPF/MainWindow.xaml b/rabi_splitter_WPF/MainWindow.xaml index f1145bd..43f3076 100644 --- a/rabi_splitter_WPF/MainWindow.xaml +++ b/rabi_splitter_WPF/MainWindow.xaml @@ -10,107 +10,110 @@ - - - - - - - -