void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ChkdskWindow = ((ControlCenter.Applications.CheckDisk.Chkdsk)(target)); #line 4 "..\..\..\..\Applications\CheckDisk\Chkdsk.xaml" this.ChkdskWindow.Closing += new System.ComponentModel.CancelEventHandler(this.ChkdskWindow_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 8 "..\..\..\..\Applications\CheckDisk\Chkdsk.xaml" this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click); #line default #line hidden return; case 4: this.lbOutput = ((System.Windows.Controls.ListBox)(target)); return; case 5: this.lblError = ((System.Windows.Controls.Label)(target)); return; case 6: this.btnAbort = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\..\..\Applications\CheckDisk\Chkdsk.xaml" this.btnAbort.Click += new System.Windows.RoutedEventHandler(this.btnAbort_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void btnChkDsk_Click(object sender, RoutedEventArgs e) { ControlCenter.Applications.CheckDisk.Chkdsk chdsdk = new ControlCenter.Applications.CheckDisk.Chkdsk(); chdsdk.Show(); this.WindowState = WindowState.Minimized; }