MainWindow
Inheritance: System.Windows.Window, System.Windows.Markup.IComponentConnector
Esempio n. 1
0
        public SettingsWindow()
        {
            InitializeComponent();

            DependencyUtility.BuildUp(this);

            autoRunMenuItem.IsChecked = AutorunHelper.IsAutorunRegistered;

            playerWindow = new VkMusic.UI.PlayerWindow();
            MyNotifyIcon.BeforeShowTrayPopup += MyNotifyIcon_BeforeShowTrayPopup; ;

            MusicWorker.SynchronizationStarted += MusicWorker_SynchronizationStarted;
            MusicWorker.SynchronizationCompleted += MusicWorker_SynchronizationCompleted;

            mainWindow = new MainWindow();

            MusicPlayer.MusicPlayed += () => startPauseItem.Header = "Пауза";
            MusicPlayer.MusicPaused += () => startPauseItem.Header = "Старт";

            playerWindow.Topmost = alwaysOnTopItem.IsChecked = Properties.Settings.Default.AlwaysOnTop;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((WpfUI.MainWindow)(target));
                return;

            case 2:
                this.mainContainer = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.CityContainer = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.Budapest = ((System.Windows.Controls.RadioButton)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.Budapest.Checked += new System.Windows.RoutedEventHandler(this.TravelCity);

            #line default
            #line hidden
                return;

            case 5:
                this.Hatvan = ((System.Windows.Controls.RadioButton)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.Hatvan.Checked += new System.Windows.RoutedEventHandler(this.TravelCity);

            #line default
            #line hidden
                return;

            case 6:
                this.Székesfehérvár = ((System.Windows.Controls.RadioButton)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.Székesfehérvár.Checked += new System.Windows.RoutedEventHandler(this.TravelCity);

            #line default
            #line hidden
                return;

            case 7:
                this.Kecskemét = ((System.Windows.Controls.RadioButton)(target));

            #line 40 "..\..\MainWindow.xaml"
                this.Kecskemét.Checked += new System.Windows.RoutedEventHandler(this.TravelCity);

            #line default
            #line hidden
                return;

            case 8:
                this.Nappali = ((System.Windows.Controls.RadioButton)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.Nappali.Checked += new System.Windows.RoutedEventHandler(this.Discount);

            #line default
            #line hidden
                return;

            case 9:
                this.Nyugdíjas = ((System.Windows.Controls.RadioButton)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.Nyugdíjas.Checked += new System.Windows.RoutedEventHandler(this.Discount);

            #line default
            #line hidden
                return;

            case 10:
                this.Törzsutas = ((System.Windows.Controls.RadioButton)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.Törzsutas.Checked += new System.Windows.RoutedEventHandler(this.Discount);

            #line default
            #line hidden
                return;

            case 11:
                this.Kutya = ((System.Windows.Controls.CheckBox)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.Kutya.Checked += new System.Windows.RoutedEventHandler(this.ServiceChecked);

            #line default
            #line hidden

            #line 52 "..\..\MainWindow.xaml"
                this.Kutya.Unchecked += new System.Windows.RoutedEventHandler(this.ServiceUnchecked);

            #line default
            #line hidden
                return;

            case 12:
                this.Bicikli = ((System.Windows.Controls.CheckBox)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.Bicikli.Checked += new System.Windows.RoutedEventHandler(this.ServiceChecked);

            #line default
            #line hidden

            #line 53 "..\..\MainWindow.xaml"
                this.Bicikli.Unchecked += new System.Windows.RoutedEventHandler(this.ServiceUnchecked);

            #line default
            #line hidden
                return;

            case 13:
                this.Poggyász = ((System.Windows.Controls.CheckBox)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.Poggyász.Checked += new System.Windows.RoutedEventHandler(this.ServiceChecked);

            #line default
            #line hidden

            #line 54 "..\..\MainWindow.xaml"
                this.Poggyász.Unchecked += new System.Windows.RoutedEventHandler(this.ServiceUnchecked);

            #line default
            #line hidden
                return;

            case 14:
                this.total = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:

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

            #line default
            #line hidden
                return;

            case 16:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((WpfUI.MainWindow)(target));
                return;

            case 2:
                this.checkBox_advanced_input = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 3:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:
                this.textBox_M = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 6:
                this.textBox_inDim = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.textBox_cellDim = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.textBox_hiDim = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 26 "..\..\MainWindow.xaml"
                this.button_start.Click += new System.Windows.RoutedEventHandler(this.button_start_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.button_show = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.button_show.Click += new System.Windows.RoutedEventHandler(this.button_show_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.textBox_squared_error = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.button_save_plot = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.button_save_plot.Click += new System.Windows.RoutedEventHandler(this.button_save_plot_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.button_save_window = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.button_save_window.Click += new System.Windows.RoutedEventHandler(this.button_save_window_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.stack_panel = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 4
0
 public GoToLineWindow(MainWindow mainWindow)
 {
     MainWindow = mainWindow;
     InitializeComponent();
     tbLineNumber.Focus();
 }