public static void ShowPopup()
        {
            FancyBalloon balloon = new FancyBalloon
            {
                DataContext = Me.DataView
            };

            Me.myNotifyIcon.ShowCustomBalloon(balloon, new System.Windows.Controls.Primitives.PopupAnimation(), 5000);
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((اذان_و_اوقات_شرعی.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.ComboBoxCity = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.OnHor = ((System.Windows.Controls.CheckBox)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.OnHor.Checked += new System.Windows.RoutedEventHandler(this.OnHor_Checked);

            #line default
            #line hidden

            #line 19 "..\..\MainWindow.xaml"
                this.OnHor.Unchecked += new System.Windows.RoutedEventHandler(this.OnHor_Unchecked);

            #line default
            #line hidden
                return;

            case 4:

            #line 20 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.myNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.myNotifyIcon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MyNotifyIcon_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:
                this.B1 = ((اذان_و_اوقات_شرعی.FancyBalloon)(target));
                return;

            case 8:

            #line 63 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Auto_Update_MenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 64 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Update_MenuItem_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 65 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Settinge_MenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.AutoHideClock = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.AutoHideClock.Click += new System.Windows.RoutedEventHandler(this.AutoHideClock_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.VisibleClock = ((System.Windows.Controls.MenuItem)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.VisibleClock.Click += new System.Windows.RoutedEventHandler(this.VisibleClock_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 68 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetLockationClock_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 69 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stop_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 70 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_MenuItem_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.Startup = ((System.Windows.Controls.CheckBox)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.Startup.Checked += new System.Windows.RoutedEventHandler(this.Startup_Checked);

            #line default
            #line hidden

            #line 74 "..\..\MainWindow.xaml"
                this.Startup.Unchecked += new System.Windows.RoutedEventHandler(this.Startup_Unchecked);

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