Interaction logic for Window1.xaml
Inheritance: IDisposable
        private void AddCredentials_OnClick(object sender, RoutedEventArgs e)
        {
            var credentialsDialogue = new CredentialsDialog();

            credentialsDialogue.Closing += CredentialsDialogue_Closing;

            credentialsDialogue.Launch();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Credentials_Dialog = ((MetroDemo.ExampleWindows.CredentialsDialog)(target));
                return;

            case 2:
                this.txtBoxDomain = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.txtBoxUserName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txtBoxPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 5:
                this.OkButton = ((System.Windows.Controls.Button)(target));

            #line 86 "..\..\..\..\Windows\CredentialsDialog.xaml"
                this.OkButton.Click += new System.Windows.RoutedEventHandler(this.OkButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 87 "..\..\..\..\Windows\CredentialsDialog.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Credentials_Dialog = ((MetroDemo.ExampleWindows.CredentialsDialog)(target));
     return;
     case 2:
     this.txtBoxDomain = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.txtBoxUserName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.txtBoxPassword = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 5:
     this.OkButton = ((System.Windows.Controls.Button)(target));
     
     #line 86 "..\..\..\..\Windows\CredentialsDialog.xaml"
     this.OkButton.Click += new System.Windows.RoutedEventHandler(this.OkButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 6:
     this.CancelButton = ((System.Windows.Controls.Button)(target));
     
     #line 87 "..\..\..\..\Windows\CredentialsDialog.xaml"
     this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_OnClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }