Ejemplo n.º 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.FW = ((FileWatcher.MainWindow)(target));
         return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            var window = new MainWindow();
            var viewmodel = new MainWindowViewModel();
            // Allow all controls in the window to
            // bind to the ViewModel by setting the
            // DataContext, which propagates down
            // the element tree.
            window.DataContext = viewmodel;

            window.Show();
        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.windows = ((FileWatcher.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.windows.Initialized += new System.EventHandler(this.Window_Initialized);

            #line default
            #line hidden
                return;

            case 2:
                this.myGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\MainWindow.xaml"
                this.btn_beenden.Click += new System.Windows.RoutedEventHandler(this.btn_beenden_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.lstview_anzeige = ((System.Windows.Controls.ListView)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.lstview_anzeige.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lstview_anzeige_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 6:
                this.lbl_counter = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lbl_fwversion = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 9:

            #line 55 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DirectoryWatch_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.SetPathMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 62 "..\..\MainWindow.xaml"
                this.SetPathMenu.Click += new System.Windows.RoutedEventHandler(this.SetPath_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 63 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FWOA_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 64 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.GoToLogOrdner_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.lbl_ordner = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.lbl_ordner_clean = ((System.Windows.Controls.Label)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.lbl_ordner_clean.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lbl_ordner_clean_MouseDown);

            #line default
            #line hidden
                return;

            case 15:
                this.lbl_ShowChangelog = ((System.Windows.Controls.Label)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.lbl_ShowChangelog.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lbl_ShowChangelog_MouseDown);

            #line default
            #line hidden
                return;

            case 16:

            #line 69 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LoDa_Click);

            #line default
            #line hidden
                return;

            case 17:

            #line 72 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowInfra);

            #line default
            #line hidden
                return;

            case 18:
                this.cmb_festplatten = ((System.Windows.Controls.ComboBox)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.cmb_festplatten.Loaded += new System.Windows.RoutedEventHandler(this.cmb_festplatten_Loaded);

            #line default
            #line hidden
                return;

            case 19:
                this.btn_stop = ((System.Windows.Controls.Button)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.btn_stop.Click += new System.Windows.RoutedEventHandler(this.btn_stop_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.lbl_Messages = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }