public static bool Show(string kMessageBoxText, string caption, string btn1_Text, string btn2_Text, MessageBoxImage messageBoxImage)
        {
            KMessageBox kMessageBox = new KMessageBox(kMessageBoxText, caption, btn1_Text, btn2_Text, messageBoxImage);

            kMessageBox.ShowDialog();
            return(kMessageBox.Result);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.kMessageBox = ((LibraryManager.KBox.KMessageBox)(target));
                return;

            case 2:

            #line 47 "..\..\..\KBox\KMessageBox.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.tblTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:

            #line 49 "..\..\..\KBox\KMessageBox.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn2_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.gridContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.icoBox = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 7:
                this.tblContent = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.btn1 = ((System.Windows.Controls.Button)(target));

            #line 112 "..\..\..\KBox\KMessageBox.xaml"
                this.btn1.Click += new System.Windows.RoutedEventHandler(this.btn1_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.tblButton1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.btn2 = ((System.Windows.Controls.Button)(target));

            #line 118 "..\..\..\KBox\KMessageBox.xaml"
                this.btn2.Click += new System.Windows.RoutedEventHandler(this.btn2_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.tblButton2 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }