Example #1
0
        private void btnClose_Click(object sender, RoutedEventArgs e)
        {
            if (_isForceUpdate)
            {
                this.Close();

                AbandonUpdateWindow win = new AbandonUpdateWindow();
                win.OnUpdate += Win_OnUpdate;
                win.ShowDialog();
            }
            else
            {
                Application.Current?.Shutdown(0);
            }
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.root = ((IMLaunch.AbandonUpdateWindow)(target));
                return;

            case 2:

            #line 12 "..\..\AbandonUpdateWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\AbandonUpdateWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 21 "..\..\AbandonUpdateWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\AbandonUpdateWindow.xaml"
                this.btnUpdate.Click += new System.Windows.RoutedEventHandler(this.btnUpdate_Click);

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