コード例 #1
0
        public RecordingModel(Recording rec, Button[] utils, MacrosView ui)
        {
            this.ui     = ui;
            this.utils  = utils;
            FocusedTray = new FocusContainer(this);
            Keyframes   = new ObservableCollection <InfoTray>();

            LoadRecording(rec);
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((Autokeys2.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.taskbarInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.vewLeft = ((Autokeys2.Views.MacrosView)(target));
                return;

            case 4:
                this.btnExL = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.btnExL.Click += new System.Windows.RoutedEventHandler(this.showHideLeft);

            #line default
            #line hidden
                return;

            case 5:
                this.brdAll = ((System.Windows.Controls.Border)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.brdAll.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.onMouseDown);

            #line default
            #line hidden
                return;

            case 6:
                this.btnRecord = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.btnRecord.Click += new System.Windows.RoutedEventHandler(this.btnRecord_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnPlay = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.txtRepeats = ((System.Windows.Controls.TextBox)(target));

            #line 65 "..\..\MainWindow.xaml"
                this.txtRepeats.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtRepeats_KeyDown);

            #line default
            #line hidden
                return;

            case 9:
                this.txtSpeed = ((System.Windows.Controls.TextBox)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.txtSpeed.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtSpeed_KeyDown);

            #line default
            #line hidden
                return;

            case 10:
                this.btnMin = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.btnMin.Click += new System.Windows.RoutedEventHandler(this.btnMin_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\MainWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.brdLeft = ((Autokeys2.Views.MacrosView)(target));
                return;

            case 2:

            #line 83 "..\..\..\Views\MacrosView.xaml"
                ((System.Windows.Controls.Border)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.traysLostFocus);

            #line default
            #line hidden
                return;

            case 3:
                this.btnSave = ((System.Windows.Controls.Button)(target));

            #line 116 "..\..\..\Views\MacrosView.xaml"
                this.btnSave.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.btnSave_MouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.btnLoad = ((System.Windows.Controls.Button)(target));

            #line 118 "..\..\..\Views\MacrosView.xaml"
                this.btnLoad.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.btnLoad_MouseDown);

            #line default
            #line hidden
                return;

            case 5:
                this.txtFileName = ((System.Windows.Controls.TextBox)(target));

            #line 122 "..\..\..\Views\MacrosView.xaml"
                this.txtFileName.GotFocus += new System.Windows.RoutedEventHandler(this.txtFileName_GotFocus);

            #line default
            #line hidden

            #line 123 "..\..\..\Views\MacrosView.xaml"
                this.txtFileName.LostFocus += new System.Windows.RoutedEventHandler(this.txtFileName_LostFocus);

            #line default
            #line hidden

            #line 123 "..\..\..\Views\MacrosView.xaml"
                this.txtFileName.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtFileName_KeyDown);

            #line default
            #line hidden
                return;

            case 6:
                this.keyframesControl = ((System.Windows.Controls.ItemsControl)(target));

            #line 143 "..\..\..\Views\MacrosView.xaml"
                this.keyframesControl.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.traysLostFocus);

            #line default
            #line hidden
                return;

            case 7:
                this.btnUp = ((System.Windows.Controls.Button)(target));

            #line 162 "..\..\..\Views\MacrosView.xaml"
                this.btnUp.Click += new System.Windows.RoutedEventHandler(this.Util_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnDn = ((System.Windows.Controls.Button)(target));

            #line 163 "..\..\..\Views\MacrosView.xaml"
                this.btnDn.Click += new System.Windows.RoutedEventHandler(this.Util_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnAddM = ((System.Windows.Controls.Button)(target));

            #line 164 "..\..\..\Views\MacrosView.xaml"
                this.btnAddM.Click += new System.Windows.RoutedEventHandler(this.Util_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btnAddK = ((System.Windows.Controls.Button)(target));

            #line 165 "..\..\..\Views\MacrosView.xaml"
                this.btnAddK.Click += new System.Windows.RoutedEventHandler(this.Util_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnDel = ((System.Windows.Controls.Button)(target));

            #line 166 "..\..\..\Views\MacrosView.xaml"
                this.btnDel.Click += new System.Windows.RoutedEventHandler(this.Util_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnDis = ((System.Windows.Controls.Button)(target));

            #line 167 "..\..\..\Views\MacrosView.xaml"
                this.btnDis.Click += new System.Windows.RoutedEventHandler(this.Util_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }