Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((Parser.MainWindow)(target));

            #line 8 "..\..\..\Windows\MainWindow.xaml"
                this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.FetchButton = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\..\Windows\MainWindow.xaml"
                this.FetchButton.Click += new System.Windows.RoutedEventHandler(this.FetchButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.ListStories = ((System.Windows.Controls.ListBox)(target));

            #line 11 "..\..\..\Windows\MainWindow.xaml"
                this.ListStories.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListStories_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 4:
                this.Player = ((System.Windows.Controls.MediaElement)(target));

            #line 12 "..\..\..\Windows\MainWindow.xaml"
                this.Player.MediaEnded += new System.Windows.RoutedEventHandler(this.Player_MediaEnded);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\..\Windows\MainWindow.xaml"
                this.userid.LostFocus += new System.Windows.RoutedEventHandler(this.userid_LostFocus);

            #line default
            #line hidden
                return;

            case 6:
                this.sessionid = ((System.Windows.Controls.TextBox)(target));

            #line 14 "..\..\..\Windows\MainWindow.xaml"
                this.sessionid.LostFocus += new System.Windows.RoutedEventHandler(this.sessionid_LostFocus);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\..\Windows\MainWindow.xaml"
                this.DownloadButton.Click += new System.Windows.RoutedEventHandler(this.DownloadButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.IsAutoCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 16 "..\..\..\Windows\MainWindow.xaml"
                this.IsAutoCheckBox.Unchecked += new System.Windows.RoutedEventHandler(this.IsAutoCheckBox_Unchecked);

            #line default
            #line hidden

            #line 16 "..\..\..\Windows\MainWindow.xaml"
                this.IsAutoCheckBox.Checked += new System.Windows.RoutedEventHandler(this.IsAutoCheckBox_Checked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
 public Fulllist(MainWindow parent) : this()
 {
     m_parent = parent;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Form1 = ((Parser.MainWindow)(target));
     return;
     case 2:
     this.textBox1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.textBox2 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.textBox3 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.textBox4 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.progressBar1 = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 7:
     this.label6 = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.label7 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.textBox5 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.label8 = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.menuItem1 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.menuItem1.Click += new System.Windows.RoutedEventHandler(this.MenuItem1_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.menuItem2 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 25 "..\..\MainWindow.xaml"
     this.menuItem2.Click += new System.Windows.RoutedEventHandler(this.MenuItem2_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.checkBox3 = ((System.Windows.Controls.CheckBox)(target));
     
     #line 27 "..\..\MainWindow.xaml"
     this.checkBox3.Checked += new System.Windows.RoutedEventHandler(this.checkBox3_Checked);
     
     #line default
     #line hidden
     
     #line 27 "..\..\MainWindow.xaml"
     this.checkBox3.Unchecked += new System.Windows.RoutedEventHandler(this.checkBox3_Unchecked);
     
     #line default
     #line hidden
     return;
     case 18:
     this.checkBox1 = ((System.Windows.Controls.CheckBox)(target));
     
     #line 28 "..\..\MainWindow.xaml"
     this.checkBox1.Checked += new System.Windows.RoutedEventHandler(this.checkBox1_Checked);
     
     #line default
     #line hidden
     
     #line 28 "..\..\MainWindow.xaml"
     this.checkBox1.Unchecked += new System.Windows.RoutedEventHandler(this.checkBox1_Unchecked);
     
     #line default
     #line hidden
     return;
     case 19:
     this.checkBox2 = ((System.Windows.Controls.CheckBox)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.checkBox2.Checked += new System.Windows.RoutedEventHandler(this.checkBox2_Checked);
     
     #line default
     #line hidden
     
     #line 29 "..\..\MainWindow.xaml"
     this.checkBox2.Unchecked += new System.Windows.RoutedEventHandler(this.checkBox2_Unchecked);
     
     #line default
     #line hidden
     return;
     case 20:
     this.checkBox4 = ((System.Windows.Controls.CheckBox)(target));
     
     #line 30 "..\..\MainWindow.xaml"
     this.checkBox4.Checked += new System.Windows.RoutedEventHandler(this.checkBox4_Checked);
     
     #line default
     #line hidden
     
     #line 30 "..\..\MainWindow.xaml"
     this.checkBox4.Unchecked += new System.Windows.RoutedEventHandler(this.checkBox4_Unchecked);
     
     #line default
     #line hidden
     return;
     case 21:
     this.textBox6 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.label9 = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.textBox7 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 24:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 34 "..\..\MainWindow.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Button1_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.listView1 = ((System.Windows.Controls.ListView)(target));
     return;
     case 27:
     this.listView2 = ((System.Windows.Controls.ListView)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #4
0
 public static MainWindow GetMaindow(DependencyObject dependencyObject)
 {
     return _mainWindow ?? (_mainWindow = UtilityManager.FindVisualParent<MainWindow>(dependencyObject));
 }