Esempio n. 1
0
 private bool _UVncHelper1_ValidateAccountOrOpenInputAccountBoxEvent(object sender, UVncOption option)
 {
     return((bool)this.Dispatcher.Invoke(new Func <bool>(() =>
     {
         InputAccountWindow inputAccountWindow = new InputAccountWindow();
         inputAccountWindow.Owner = this;
         inputAccountWindow.ShowDialog();
         var input = UVncOption.ValidateInputAccount();
         return input;
     })));
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AccountWindow = ((VNCRemoteWPF.InputAccountWindow)(target));

            #line 9 "..\..\InputAccountWindow.xaml"
                this.AccountWindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.AccountWindow_KeyDown);

            #line default
            #line hidden
                return;

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

            case 3:
                this.txtAdminPasswd = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 4:
                this.btnOK = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\InputAccountWindow.xaml"
                this.btnOK.Click += new System.Windows.RoutedEventHandler(this.btnOK_Click);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\InputAccountWindow.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }