Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ikkuna = ((Mylly.SettingsWindow)(target));
                return;

            case 2:

            #line 11 "..\..\SettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\SettingsWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\SettingsWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ellipse1 = ((System.Windows.Shapes.Ellipse)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Ikkuna = ((Mylly.SettingsWindow)(target));
                return;

            case 2:

            #line 15 "..\..\SettingsWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CommandBinding_CanExecute);

            #line default
            #line hidden

            #line 15 "..\..\SettingsWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed);

            #line default
            #line hidden
                return;

            case 3:

            #line 118 "..\..\SettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Ok_Button_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 119 "..\..\SettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Cancel_Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Settings komento. Avaa uuden settings-ikkunan. Asettaa color värin valitun mukaiseksi.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CommandBindingSettings_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     SettingsWindow settings = new SettingsWindow();
     settings.color = color;
     settings.ShowDialog();
     color = settings.color;
 }