void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DefragmenterWindow = ((ControlCenter.Applications.Defragmenter.Defragmenter)(target)); #line 4 "..\..\..\..\Applications\Defragmenter\Defragmenter.xaml" this.DefragmenterWindow.Closing += new System.ComponentModel.CancelEventHandler(this.DefragmenterWindow_Closing); #line default #line hidden return; case 2: this.lbDrives = ((System.Windows.Controls.ListBox)(target)); return; case 3: this.btnStart = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\..\..\Applications\Defragmenter\Defragmenter.xaml" this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click); #line default #line hidden return; case 4: this.btnAbort = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\..\..\Applications\Defragmenter\Defragmenter.xaml" this.btnAbort.Click += new System.Windows.RoutedEventHandler(this.btnAbort_Click); #line default #line hidden return; case 5: this.lbOutput = ((System.Windows.Controls.ListBox)(target)); return; case 6: this.btnAnalyze = ((System.Windows.Controls.Button)(target)); #line 17 "..\..\..\..\Applications\Defragmenter\Defragmenter.xaml" this.btnAnalyze.Click += new System.Windows.RoutedEventHandler(this.btnAnalyze_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void btnDefrag_Click(object sender, RoutedEventArgs e) { ControlCenter.Applications.Defragmenter.Defragmenter defrag = new ControlCenter.Applications.Defragmenter.Defragmenter(); defrag.Show(); this.WindowState = WindowState.Minimized; }