public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/7;component/MainPage2.xaml", System.UriKind.Relative));
     this.LayoutRoot                    = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel                    = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle              = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.MainMediaElement              = ((System.Windows.Controls.MediaElement)(this.FindName("MainMediaElement")));
     this.PivotControl                  = ((Microsoft.Phone.Controls.Pivot)(this.FindName("PivotControl")));
     this.ContentPanel                  = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.XAMLMap                       = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("XAMLMap")));
     this.XAMLULMarker                  = ((Microsoft.Phone.Maps.Toolkit.UserLocationMarker)(this.FindName("XAMLULMarker")));
     this.StartAlarmButton              = ((System.Windows.Controls.Button)(this.FindName("StartAlarmButton")));
     this.CancelButton                  = ((System.Windows.Controls.Button)(this.FindName("CancelButton")));
     this.XAMLAutoCompleteBox           = ((Microsoft.Phone.Controls.AutoCompleteBox)(this.FindName("XAMLAutoCompleteBox")));
     this.DistanceLeftLabelTextBlock    = ((System.Windows.Controls.TextBlock)(this.FindName("DistanceLeftLabelTextBlock")));
     this.DistanceLeftDistanceTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("DistanceLeftDistanceTextBlock")));
     this.miLabelTextBlock              = ((System.Windows.Controls.TextBlock)(this.FindName("miLabelTextBlock")));
     this.SettingsScrollViewer          = ((System.Windows.Controls.ScrollViewer)(this.FindName("SettingsScrollViewer")));
     this.RingerTextBlock               = ((System.Windows.Controls.TextBlock)(this.FindName("RingerTextBlock")));
     this.RingerSlider                  = ((System.Windows.Controls.Slider)(this.FindName("RingerSlider")));
     this.RingerTextBlockState          = ((System.Windows.Controls.TextBlock)(this.FindName("RingerTextBlockState")));
     this.VibrateTextBlock              = ((System.Windows.Controls.TextBlock)(this.FindName("VibrateTextBlock")));
     this.VibrateSlider                 = ((System.Windows.Controls.Slider)(this.FindName("VibrateSlider")));
     this.VibrateTextBlockState         = ((System.Windows.Controls.TextBlock)(this.FindName("VibrateTextBlockState")));
     this.DistanceLabelTextBlock        = ((System.Windows.Controls.TextBlock)(this.FindName("DistanceLabelTextBlock")));
     this.DistanceSettingSlider         = ((Microsoft.Phone.Controls.PhoneSlider)(this.FindName("DistanceSettingSlider")));
     this.DistanceSettingLabelTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("DistanceSettingLabelTextBlock")));
     this.SoundSettingLabelTextBlock    = ((System.Windows.Controls.TextBlock)(this.FindName("SoundSettingLabelTextBlock")));
     this.SoundSettingButton            = ((System.Windows.Controls.Button)(this.FindName("SoundSettingButton")));
     this.VibrateSettingLabelTextBlock  = ((System.Windows.Controls.TextBlock)(this.FindName("VibrateSettingLabelTextBlock")));
     this.VibrateSettingButton          = ((System.Windows.Controls.Button)(this.FindName("VibrateSettingButton")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/7;component/MainPage2.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.MainMediaElement = ((System.Windows.Controls.MediaElement)(this.FindName("MainMediaElement")));
     this.PivotControl = ((Microsoft.Phone.Controls.Pivot)(this.FindName("PivotControl")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.XAMLMap = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("XAMLMap")));
     this.XAMLULMarker = ((Microsoft.Phone.Maps.Toolkit.UserLocationMarker)(this.FindName("XAMLULMarker")));
     this.StartAlarmButton = ((System.Windows.Controls.Button)(this.FindName("StartAlarmButton")));
     this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton")));
     this.XAMLAutoCompleteBox = ((Microsoft.Phone.Controls.AutoCompleteBox)(this.FindName("XAMLAutoCompleteBox")));
     this.DistanceLeftLabelTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("DistanceLeftLabelTextBlock")));
     this.DistanceLeftDistanceTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("DistanceLeftDistanceTextBlock")));
     this.miLabelTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("miLabelTextBlock")));
     this.SettingsScrollViewer = ((System.Windows.Controls.ScrollViewer)(this.FindName("SettingsScrollViewer")));
     this.RingerTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("RingerTextBlock")));
     this.RingerSlider = ((System.Windows.Controls.Slider)(this.FindName("RingerSlider")));
     this.RingerTextBlockState = ((System.Windows.Controls.TextBlock)(this.FindName("RingerTextBlockState")));
     this.VibrateTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("VibrateTextBlock")));
     this.VibrateSlider = ((System.Windows.Controls.Slider)(this.FindName("VibrateSlider")));
     this.VibrateTextBlockState = ((System.Windows.Controls.TextBlock)(this.FindName("VibrateTextBlockState")));
     this.DistanceLabelTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("DistanceLabelTextBlock")));
     this.DistanceSettingSlider = ((Microsoft.Phone.Controls.PhoneSlider)(this.FindName("DistanceSettingSlider")));
     this.DistanceSettingLabelTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("DistanceSettingLabelTextBlock")));
     this.SoundSettingLabelTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("SoundSettingLabelTextBlock")));
     this.SoundSettingButton = ((System.Windows.Controls.Button)(this.FindName("SoundSettingButton")));
     this.VibrateSettingLabelTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("VibrateSettingLabelTextBlock")));
     this.VibrateSettingButton = ((System.Windows.Controls.Button)(this.FindName("VibrateSettingButton")));
 }