예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lockWindow = ((screenLock.LockWindow)(target));

            #line 15 "..\..\LockWindow.xaml"
                this.lockWindow.Closing += new System.ComponentModel.CancelEventHandler(this.lockWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.passwordBox = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 3:
                this.unlockButton = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\LockWindow.xaml"
                this.unlockButton.Click += new System.Windows.RoutedEventHandler(this.unlockButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void lockButton_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            SystemSounds.Beep.Play();
            LockWindow lockedWindow = new LockWindow();

            lockedWindow.Show();
            //Console.WriteLine("closing \n\n\n\nashdghasgdjasgd");
            Util.lockingTime = DateTime.Now;
            Close();
        }