Esempio n. 1
0
        public static string Show(string inputTextExam, string caption, string btn1_Text, string btn2_Text)
        {
            KInputBox kInputBox = new KInputBox(inputTextExam, caption, btn1_Text, btn2_Text);

            kInputBox.ShowDialog();
            return(kInputBox.Result);
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.kInputBox = ((LibraryManager.KBox.KInputBox)(target));
                return;

            case 2:

            #line 49 "..\..\..\KBox\KInputBox.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 53 "..\..\..\KBox\KInputBox.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn2_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.tbxInput = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.gridButton = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;

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