Ejemplo n.º 1
0
 private void preferencesMenu_Click(object i_sender, RoutedEventArgs i_e)
 {
     m_preferences_open = true;
     contextPlay.IsEnabled = false;
     Preferences prefWindow = new Preferences();
     prefWindow.ShowDialog();
     contextPlay.IsEnabled = true;
     m_preferences_open = false;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.PreferencesWindow = ((Auto_Snapshot_Application.Preferences)(target));
     
     #line 6 "..\..\PreferencesWindow.xaml"
     this.PreferencesWindow.LocationChanged += new System.EventHandler(this.PreferenceWindow_LocationChnaged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.txtDirectory = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.txtFrequency = ((System.Windows.Controls.TextBox)(target));
     
     #line 26 "..\..\PreferencesWindow.xaml"
     this.txtFrequency.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TxtFrequency_OnPreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btnBrowseDocument = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\PreferencesWindow.xaml"
     this.btnBrowseDocument.Click += new System.Windows.RoutedEventHandler(this.btnBrowseDocument_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.comboFrequency = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.cbSizeLimit = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 7:
     this.txtSizeLimit = ((System.Windows.Controls.TextBox)(target));
     
     #line 33 "..\..\PreferencesWindow.xaml"
     this.txtSizeLimit.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtSizeLimit_TextChanged);
     
     #line default
     #line hidden
     
     #line 33 "..\..\PreferencesWindow.xaml"
     this.txtSizeLimit.MouseMove += new System.Windows.Input.MouseEventHandler(this.txtSizeLimit_Mousemove);
     
     #line default
     #line hidden
     
     #line 33 "..\..\PreferencesWindow.xaml"
     this.txtSizeLimit.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TxtSizeLimit_OnPreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 8:
     this.SizeLimitPopup = ((System.Windows.Controls.Primitives.Popup)(target));
     return;
     case 9:
     this.PopupLabel = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.cbIdleDetection = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 11:
     this.comboPixelFormat = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 12:
     this.comboImageFormat = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 13:
     this.txtTemplateDirectory = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.btnBrowseTemplate = ((System.Windows.Controls.Button)(target));
     
     #line 64 "..\..\PreferencesWindow.xaml"
     this.btnBrowseTemplate.Click += new System.Windows.RoutedEventHandler(this.btnBrowseTemplate_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.radioLandscape = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 16:
     this.radioPortrait = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 17:
     this.btnOk = ((System.Windows.Controls.Button)(target));
     
     #line 70 "..\..\PreferencesWindow.xaml"
     this.btnOk.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.btnCancel = ((System.Windows.Controls.Button)(target));
     
     #line 71 "..\..\PreferencesWindow.xaml"
     this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }