public VibrateListBoxPage() { InitializeComponent(); mainSettings = new AppSettings(); // Vibrate Device MainVibrateController = VibrateController.Default; // Events TrillVibrate.Tap += TrillVibrate_Tap; TrillVibrateButton.Tap += TrillVibrateButton_Tap; SpicatoVibrate.Tap += SpicatoVibrate_Tap; SpicatoVibrateButton.Tap += SpicatoVibrateButton_Tap; PizzicatoVibrate.Tap += PizzicatoVibrate_Tap; PizzicatoVibrateButton.Tap += PizzicatoVibrateButton_Tap; StaccatoVibrate.Tap += StaccatoVibrate_Tap; StaccatoVibrateButton.Tap += StaccatoVibrateButton_Tap; TenutoVibrate.Tap += TenutoVibrate_Tap; TenutoVibrateButton.Tap += TenutoVibrateButton_Tap; FermataVibrate.Tap += FermataVibrate_Tap; FermataVibrateButton.Tap += FermataVibrateButton_Tap; SnakeVibrate.Tap += SnakeVibrate_Tap; SnakeVibrateButton.Tap += SnakeVibrateButton_Tap; ZigZagVibrate.Tap += ZigZagVibrate_Tap; ZigZagVibrateButton.Tap += ZigZagVibrateButton_Tap; RandomVibrate.Tap += RandomVibrate_Tap; RandomVibrateButton.Tap += RandomVibrateButton_Tap; }
public MasterScene(Game game, ContentManager content, GameComponentCollection components) : base(game) { Components = components; Content = content; vibration = VibrateController.Default; gameMS = game; // TODO: Construct any child components here }
private int wichLevel = 0, sceneProgression=0, timer = 0; //lobby = 0 #endregion Fields #region Constructors public Lobby(Game game, ContentManager content, GameComponentCollection components) : base(game) { Components = components; Content = content; sceneProgression = gameData.getProgression("lobby"); vibration = VibrateController.Default; }
/// <summary> /// Initializes a new instance of the <see cref="OperationsPage"/> class. /// </summary> public OperationsPage() { InitializeComponent(); SetColors(); _vibrate = VibrateController.Default; Stream stream = TitleContainer.OpenStream("Sounds/Windows Balloon.wav"); _effect = SoundEffect.FromStream(stream); FrameworkDispatcher.Update(); _assignment = new Dictionary<int, SelectionOptions> { {0, new SelectionOptions(){MatrixView = GetEmptyMatrix(true), HasValue = false , Selected = false} }, {1, new SelectionOptions(){MatrixView = GetEmptyMatrix(true), HasValue = false , Selected = false} } }; EnableMatrixA(); button4.Content = new BackButton(); button5.Content = new NextButton(); button1.Content = new AddButton(); button2.Content = new DeleteButton(); button6.Content = new AddButton(); button7.Content = new DeleteButton(); List<Operations.Operations> source = new List<Operations.Operations> { new AddOperations(_assignment) , new SubtractOperations(_assignment), new MultiplyOperations(_assignment) , new SolveOperations(_assignment) , new LuOperations(_assignment) , new DeterminantOperations(_assignment) , new EigenvaluesOperations(_assignment) , new TransposeOperations(_assignment) , new InverseOperations(_assignment) }; this.listPicker1.ItemsSource = source; ApplicationBar = new ApplicationBar { IsVisible = true, Mode = ApplicationBarMode.Default, Opacity = 0.9 }; listPicker1.SelectionChanged += new SelectionChangedEventHandler(ListPicker1SelectionChanged); ApplicationBarIconButton acceptButton = new ApplicationBarIconButton() { IconUri = new Uri("/Image/check.png", UriKind.Relative), IsEnabled = true, Text = "Accept" }; acceptButton.Click += new EventHandler(AcceptButtonClick); ApplicationBar.Buttons.Add(acceptButton); if (IsolatedStorageSettings.ApplicationSettings.Contains("userData")) { _matrixList = IsolatedStorageSettings.ApplicationSettings["userData"] as List<PortableMatrix>; if (_matrixList != null && _matrixList.Count > 0) { _matrixViews = new List<MatrixView>(); foreach (PortableMatrix portableMatrix in _matrixList) { _matrixViews.Add(ToMatrixView(portableMatrix)); } this.grid3.Children.Add(_matrixViews[0]); this.textBlock2.Text = _matrixViews[0].MatrixName; _currentIndex = 0; } } }
public MasterScene(Game game, ContentManager content, GameComponentCollection components) : base(game) { Components = components; Content = content; textures = new Texture2D[toyCount]; rectangles = new Rectangle[toyCount]; vibration = VibrateController.Default; gameMS = game; }
public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 480; graphics.PreferredBackBufferHeight = 800; graphics.ApplyChanges(); TouchPanel.EnabledGestures = GestureType.HorizontalDrag | GestureType.DragComplete; vibrate = VibrateController.Default; braileData = new Braile(graphics); controls = new Controls(graphics); Content.RootDirectory = "Content"; // Frame rate is 30 fps by default for Windows Phone. TargetElapsedTime = TimeSpan.FromTicks(333333); // Extend battery life under lock. InactiveSleepTime = TimeSpan.FromSeconds(1); }
private VibrateUtilities() { IsVibrate = false; vc = VibrateController.Default; }
static VibrationManager() { Vibration = VibrateController.Default; }
public VibrateManager() { IsVibrate = false; vc = VibrateController.Default; }
// Constructor public MainPage() { InitializeComponent(); MainSettings = new AppSettings(); MainVibrateController = VibrateController.Default; #region Locations Locations = new List<string>(); Locations.Add("19th Ave E & E Republican St"); Locations.Add("10th Ave E & E Mercer St"); Locations.Add("1270 6th Ave S, Seattle, WA 98134"); Locations.Add("12th Ave S & S Atlantic St"); Locations.Add("12th Ave S & S Jackson St"); Locations.Add("12th Ave S & S Judkins St"); Locations.Add("12th Ave S & S Massachusetts St"); Locations.Add("12th Ave S & S Weller St"); Locations.Add("13th Ave & E Pike St"); Locations.Add("14th Ave S & S Hill St"); Locations.Add("14th Ave S & S Holgate St"); Locations.Add("14th Ave S & S Massachusetts St"); Locations.Add("14th Ave S & S Walker St"); Locations.Add("15th Ave & E Denny Way"); Locations.Add("15th Ave & E Howell St"); Locations.Add("15th Ave & E Madison St"); Locations.Add("15th Ave & E Pine St"); Locations.Add("15th Ave E & E Harrison St"); Locations.Add("15th Ave E & E Mercer St"); Locations.Add("15th Ave E & E Republican St"); Locations.Add("15th Ave E & E Roy St"); Locations.Add("15th Ave S & S Stevens St"); Locations.Add("19th Ave & E Denny Way"); Locations.Add("19th Ave & E Madison St"); Locations.Add("19th Ave E & E Denny Way"); Locations.Add("19th Ave E & E Harrison St"); Locations.Add("19th Ave E & E John St"); Locations.Add("19th Ave E & E Mercer St"); Locations.Add("1st Ave & Bay St"); Locations.Add("1st Ave & Broad St"); Locations.Add("1st Ave & Cedar St"); Locations.Add("1st Ave & Lenora St"); Locations.Add("1st Ave & Marion St"); Locations.Add("1st Ave & Union St"); Locations.Add("1st Ave & Wall St"); Locations.Add("1st Ave & Yesler Way"); Locations.Add("1st Ave N & Denny Way"); Locations.Add("1st Ave N & Mercer S"); Locations.Add("1st Ave N & Republican St"); Locations.Add("1st Ave S & S Hanford St"); Locations.Add("1st Ave S & S Lander St"); Locations.Add("2 Ave Ext S & S Washington St"); Locations.Add("201 S Jackson St S5, Seattle, WA 98104"); Locations.Add("21ST Ave & E James St"); Locations.Add("23RD Ave & E Cherry St"); Locations.Add("23RD Ave & E Jefferson St"); Locations.Add("23RD Ave & E Madison St"); Locations.Add("23RD Ave & E Marion St"); Locations.Add("23RD Ave & E Marion St"); Locations.Add("23RD Ave & E Olive St"); Locations.Add("23RD Ave & E Pine St"); Locations.Add("23RD Ave & E Spring St"); Locations.Add("23RD Ave & E Union St"); Locations.Add("23RD Ave & E Yesler Way"); Locations.Add("23RD Ave E & E John St"); Locations.Add("23RD Ave E & E Thomas St"); Locations.Add("23RD Ave S & E Yesler Way"); Locations.Add("23RD Ave S & S Dearborn St"); Locations.Add("23RD Ave S & S Jackson St"); Locations.Add("23RD Ave S & S Judkins St"); Locations.Add("23RD Ave S & S Massachusetts St"); Locations.Add("23RD Ave S & S Norman St"); Locations.Add("23RD Ave S & S Plum St"); Locations.Add("2408 1st Ave, Seattle, WA 98121"); Locations.Add("24th Ave S & S Norman St"); Locations.Add("2nd & Jackson"); Locations.Add("2nd & Pike"); Locations.Add("2nd Ave & Bell St"); Locations.Add("2nd Ave & Broad St"); Locations.Add("2nd Ave & Cedar St"); Locations.Add("2nd Ave & Cherry St"); Locations.Add("2nd Ave & James "); Locations.Add("2nd Ave & Marion St"); Locations.Add("2nd Ave & Seneca St"); Locations.Add("2nd Ave & Stewart St"); Locations.Add("2nd Ave & Wall St"); Locations.Add("31ST Ave S & S Dearborn St"); Locations.Add("31ST Ave S & S King St"); Locations.Add("31ST Ave S & S Norman St"); Locations.Add("3rd Ave & Bell St"); Locations.Add("3rd Ave & Columbia St"); Locations.Add("3rd Ave & James St"); Locations.Add("3rd Ave & Madison St"); Locations.Add("3rd Ave & Marion St"); Locations.Add("3rd Ave & Pike St"); Locations.Add("3rd Ave & Seneca St"); Locations.Add("3rd Ave & Union St"); Locations.Add("3rd Ave & Vine St"); Locations.Add("3rd Ave & Virginia St"); Locations.Add("400 Pine St, Seattle, WA 98101"); Locations.Add("41 S Jackson St, Seattle, WA 98104"); Locations.Add("4th & University"); Locations.Add("4th Ave & Cherry St"); Locations.Add("4th Ave & Jackson St"); Locations.Add("4th Ave & James St"); Locations.Add("4th Ave & Madison St"); Locations.Add("4th Ave & Seneca St"); Locations.Add("4th Ave & Stewart St"); Locations.Add("4th Ave S & Edgar Martinez Dr S"); Locations.Add("4th Ave S & S Forest St"); Locations.Add("4th Ave S & S Hanford St"); Locations.Add("4th Ave S & S Horton St"); Locations.Add("4th Ave S & S Jackson St"); Locations.Add("4th Ave S & S Lander St"); Locations.Add("4th Ave S & S Royal Brougham Way"); Locations.Add("4th Ave S at Washington St"); Locations.Add("5th Ave & James St"); Locations.Add("5th Ave & Seneca St"); Locations.Add("5th Ave & Spring St"); Locations.Add("5th Ave N & Broad St"); Locations.Add("5th Ave N & Denny Way"); Locations.Add("5th Ave N & Mercer St"); Locations.Add("5th Ave N & Republican St"); Locations.Add("5th Ave N & Valley St"); Locations.Add("5th Ave S & S Jackson St"); Locations.Add("5th Ave S, Seattle, WA 98104"); Locations.Add("5th Ave at Jefferson St"); Locations.Add("5th Ave at Marion St (SB)"); Locations.Add("6th Ave & Marion St"); Locations.Add("6th Ave S & S Atlantic St"); Locations.Add("6th Ave S & S Royal Brougham Way"); Locations.Add("8th Ave S & S King St"); Locations.Add("9th Ave & Alder St"); Locations.Add("9th Ave & Columbia St"); Locations.Add("9th Ave & James St"); Locations.Add("9th Ave & Jefferson St"); Locations.Add("9th Ave & Marion St"); Locations.Add("9th Ave & Spring St"); Locations.Add("9th Ave N & John St"); Locations.Add("9th Ave N & Mercer St"); Locations.Add("9th Ave, Seattle, WA 98104"); Locations.Add("Airpt Way S & S Bayview St"); Locations.Add("Airpt Way S & S College St"); Locations.Add("Airpt Way S & S Hill St"); Locations.Add("Airpt Way S & S Holgate St"); Locations.Add("Airpt Way S & S Horton St"); Locations.Add("Airpt Way S & S Lander St"); Locations.Add("Airpt Way S & S Stacy St"); Locations.Add("Airpt Way S & S Stevens St"); Locations.Add("Airpt Way S & S Walker St"); Locations.Add("Aurora Ave N & Denny Way"); Locations.Add("Aurora Ave N & Prospect St"); Locations.Add("Beacon Ave S & 15th Ave S"); Locations.Add("Beacon Ave S & S Bayview St"); Locations.Add("Beacon Ave S & S Lander St"); Locations.Add("Bell St & 7th Ave"); Locations.Add("Bellevue Ave E & Bellevue Pl E"); Locations.Add("Bellevue Ave E & E Denny Way"); Locations.Add("Bellevue Ave E & E Republican St"); Locations.Add("Bellevue Ave E & E Roy St"); Locations.Add("Bellevue Ave E & E Thomas St"); Locations.Add("Belmont Ave E & Summit Ave E"); Locations.Add("Blanchard St & 1st Ave"); Locations.Add("Blanchard St & 4th Ave"); Locations.Add("Boren Ave & Columbia St"); Locations.Add("Boren Ave & E Yesler Way"); Locations.Add("Boren Ave & James St"); Locations.Add("Boren Ave & Madison St"); Locations.Add("Boren Ave & Pike St"); Locations.Add("Boren Ave & Seneca St"); Locations.Add("Broad St & 2nd Ave"); Locations.Add("Broadway & E Columbia St"); Locations.Add("Broadway & E Denny Way"); Locations.Add("Broadway & E Pike St"); Locations.Add("Broadway & E Pine St"); Locations.Add("Broadway & E Union St"); Locations.Add("Broadway & Terrace St"); Locations.Add("Broadway E & E Harrison St"); Locations.Add("Broadway E & E John St"); Locations.Add("Broadway E & E Mercer St"); Locations.Add("Broadway E & E Republican St"); Locations.Add("Broadway E & E Thomas St"); Locations.Add("Cedar St & Denny Way"); Locations.Add("Columbia St & 2nd Ave"); Locations.Add("Convention Pl & Union St"); Locations.Add("Convention Place"); Locations.Add("Denny Way & 1st Ave N"); Locations.Add("Denny Way & 6th Ave N"); Locations.Add("Denny Way & Fairview Ave N"); Locations.Add("Denny Way & Stewart St"); Locations.Add("Denny Way & Warren Pl"); Locations.Add("Denny Way & Westlake Ave"); Locations.Add("Dexter Ave N & Aloha St"); Locations.Add("Dexter Ave N & Denny Way"); Locations.Add("Dexter Ave N & Harrison St"); Locations.Add("Dexter Ave N & Mercer St"); Locations.Add("E Aloha St & Broadway E"); Locations.Add("E Cherry St & 24th Ave"); Locations.Add("E Cherry St & 25th Ave"); Locations.Add("E Cherry St & 32ND Ave"); Locations.Add("E Denny Way & E Olive Way"); Locations.Add("E Jefferson St & 12th Ave"); Locations.Add("E Jefferson St & 14th Ave"); Locations.Add("E Jefferson St & 15th Ave"); Locations.Add("E Jefferson St & 20th Ave"); Locations.Add("E Jefferson St & 21ST Ave"); Locations.Add("E Jefferson St & 23RD Ave"); Locations.Add("E Jefferson St & Broadway"); Locations.Add("E John St & 12th Ave E"); Locations.Add("E John St & 15th Ave E"); Locations.Add("E John St & 23RD Ave E"); Locations.Add("E Madison St & 12th Ave"); Locations.Add("E Madison St & 14th Ave"); Locations.Add("E Madison St & 15th Ave"); Locations.Add("E Madison St & 15th Ave"); Locations.Add("E Madison St & 17th Ave"); Locations.Add("E Madison St & 18th Ave"); Locations.Add("E Madison St & 19th Ave"); Locations.Add("E Madison St & 20th Ave"); Locations.Add("E Madison St & 22ND Ave"); Locations.Add("E Madison St & 23RD Ave E"); Locations.Add("E Madison St & Broadway"); Locations.Add("E Olive Way & Broadway E"); Locations.Add("E Olive Way & Summit Ave E"); Locations.Add("E Pine St & 10th Ave"); Locations.Add("E Pine St & 11th Ave"); Locations.Add("E Pine St & 12th Ave"); Locations.Add("E Pine St & 13th Ave"); Locations.Add("E Pine St & 15th Ave"); Locations.Add("E Pine St & Bellevue Ave"); Locations.Add("E Pine St & Belmont Ave"); Locations.Add("E Pine St & Summit Ave"); Locations.Add("E Roy St & Broadway E"); Locations.Add("E Thomas St & 16th Ave E"); Locations.Add("E Thomas St & 19th Ave E"); Locations.Add("E Union St & 14th Ave"); Locations.Add("E Union St & 16th Ave"); Locations.Add("E Union St & 18th Ave"); Locations.Add("E Union St & 20th Ave"); Locations.Add("E Union St & 23RD Ave"); Locations.Add("E Union St & 25th Ave"); Locations.Add("E Union St & 26th Ave"); Locations.Add("E Union St & 27th Ave"); Locations.Add("E Union St & 29th Ave"); Locations.Add("E Union St & Martin L King Jr Way"); Locations.Add("E Yesler Way & 12th Ave S"); Locations.Add("E Yesler Way & 14th Ave S"); Locations.Add("E Yesler Way & 16th Ave S"); Locations.Add("E Yesler Way & 17th Ave"); Locations.Add("E Yesler Way & 19th Ave"); Locations.Add("E Yesler Way & 20th Ave S"); Locations.Add("E Yesler Way & 21ST Ave"); Locations.Add("E Yesler Way & 22ND Ave S"); Locations.Add("E Yesler Way & 23RD Ave S"); Locations.Add("E Yesler Way & 27th Ave S"); Locations.Add("E Yesler Way & 28th Ave S"); Locations.Add("E Yesler Way & 30th Ave S"); Locations.Add("E Yesler Way & 32ND Ave S"); Locations.Add("E Yesler Way & Broadway"); Locations.Add("Eastlake Ave E & Aloha St"); Locations.Add("Eastlake Ave E & Harrison St"); Locations.Add("Eastlake Ave E & Mercer St"); Locations.Add("Elliot Ave & Broad St"); Locations.Add("Elliott Ave w & 4th Ave W"); Locations.Add("Fairview Ave N & Harrison St"); Locations.Add("Fairview Ave N & John St"); Locations.Add("Fairview Ave N & Mercer St"); Locations.Add("Fairview Ave N & Minor Ave N"); Locations.Add("Fairview Ave N & Valley St"); Locations.Add("Fairview Ave N & Yale Ave N"); Locations.Add("Fairview Ave N, Seattle, WA 98109"); Locations.Add("Golf Dr S & 14th Ave S"); Locations.Add("I-90 & Rainier Frwy Station"); Locations.Add("International District"); Locations.Add("James St & 8th Ave"); Locations.Add("Jefferson St & Broadway"); Locations.Add("LK Dell Ave & 32ND Ave"); Locations.Add("Lenora St & 4th Ave"); Locations.Add("Lkview Blvd E & Belmont Ave E"); Locations.Add("Madison St & 2nd Ave"); Locations.Add("Madison St & 4th Ave"); Locations.Add("Madison St & 5th Ave"); Locations.Add("Madison St & 8th Ave"); Locations.Add("Madison St & 9th Ave"); Locations.Add("Madison St & Boren Ave"); Locations.Add("Madison St & Summit Ave"); Locations.Add("Marion St & 1st Ave"); Locations.Add("Marion St & 2nd Ave"); Locations.Add("Marion St & 4th Ave"); Locations.Add("Martin L King Jr Way & E Alder St"); Locations.Add("Martin L King Jr Way & E Cherry St"); Locations.Add("Martin L King Jr Way & E Marion St"); Locations.Add("Martin L King Jr Way & E Marion St"); Locations.Add("Martin L King Jr Way & E Union St"); Locations.Add("Martin L King Jr Way S & S Dearborn St"); Locations.Add("Martin L King Jr Way S & S Irving St"); Locations.Add("Martin L King Jr Way S & S Jackson St"); Locations.Add("Martin L King Jr Way S & S Judkins St"); Locations.Add("Martin L King Jr Way S & S Massachusetts St"); Locations.Add("Olive Way & 4th Ave"); Locations.Add("Olive Way & 8th Ave"); Locations.Add("Pike St & 4th Ave"); Locations.Add("Pike St & 6th Ave"); Locations.Add("Pike St & Boren Ave"); Locations.Add("Pike St & Convention Pl"); Locations.Add("Pine St & 2nd Ave"); Locations.Add("Pine St & 3rd Ave"); Locations.Add("Pine St & 4th Ave"); Locations.Add("Pine St & 5th Ave"); Locations.Add("Pine St & 9th Ave"); Locations.Add("Pine St, Seattle, WA 98101"); Locations.Add("Pioneer Square"); Locations.Add("Queen Anne Ave N & w Harrison St"); Locations.Add("Queen Anne Ave N & w John St"); Locations.Add("Queen Anne Ave N & w Mercer St"); Locations.Add("Rainier Ave S & S Charles St"); Locations.Add("Rainier Ave S & S Dearborn St"); Locations.Add("Rainier Ave S & S Grand St"); Locations.Add("Rainier Ave S & S Norman St"); Locations.Add("Rainier Ave S & S Plum St"); Locations.Add("Rainier Ave S & S State St"); Locations.Add("Rainier Ave S & S Walker St"); Locations.Add("S Charles St & Golf Dr S"); Locations.Add("S Dearborn St & 24th Ave S"); Locations.Add("S Dearborn St & 26th Ave S"); Locations.Add("S Dearborn St & 5th Ave S"); Locations.Add("S Dearborn St & 6th Ave S"); Locations.Add("S Dearborn St & Corwin Pl S"); Locations.Add("S Holgate St & Airport Way S"); Locations.Add("S Jackson St & 12th Ave S"); Locations.Add("S Jackson St & 20th Ave S"); Locations.Add("S Jackson St & 22ND Ave S"); Locations.Add("S Jackson St & 28th Ave S"); Locations.Add("S Jackson St & 2nd Ave S"); Locations.Add("S Jackson St & 30th Ave S"); Locations.Add("S Jackson St & 5th Ave S"); Locations.Add("S Jackson St & 8th Ave S"); Locations.Add("S Jackson St & Boren Ave S"); Locations.Add("S Jackson St & Martin L King Jr Way S"); Locations.Add("S Jackson St & Maynard Ave S"); Locations.Add("S Jackson St & Occidental Ave S"); Locations.Add("S Jackson St & Rainier Ave S"); Locations.Add("S Lander St & 3rd Ave S"); Locations.Add("S Lander St & Sodo Busway ACS"); Locations.Add("S Main St & 3rd Ave S"); Locations.Add("S Plum St & 25th Ave S"); Locations.Add("S Washington St & 3rd Ave S"); Locations.Add("S Washington St & 4th Ave S"); Locations.Add("Seneca St & 4th Ave"); Locations.Add("Seneca St & 6th Ave"); Locations.Add("Seneca St & 8th Ave"); Locations.Add("Seneca St & 9th Ave"); Locations.Add("Seneca St & Boylston Ave"); Locations.Add("Seneca St & Harvard Ave"); Locations.Add("Seneca St & Summit Ave"); Locations.Add("Seneca St & Terry Ave"); Locations.Add("Sodo Busway & S Holgate St"); Locations.Add("Sodo Busway & S Lander St"); Locations.Add("Sodo Busway & S Royal Brougham Way"); Locations.Add("Spring St & 4th Ave"); Locations.Add("Spring St & 6th Ave"); Locations.Add("Stewart St & 4th Ave"); Locations.Add("Stewart St & 7th Ave"); Locations.Add("Summit Ave E & E Harrison St"); Locations.Add("Summit Ave E & E Mercer St"); Locations.Add("Terrace St & 5th Ave"); Locations.Add("Terry Ave & Spruce St"); Locations.Add("Union St & 4th Ave"); Locations.Add("Union St & 6th Ave"); Locations.Add("University Street"); Locations.Add("Valley St & Taylor Ave N"); Locations.Add("Virginia St & 6th Ave"); Locations.Add("Virginia St & 9th Ave"); Locations.Add("Wall St & 5th Ave"); Locations.Add("Western Ave w & Elliott Ave W"); Locations.Add("Westlake Ave N & Aloha St"); Locations.Add("Westlake Ave N & Harrison St"); Locations.Add("Westlake Ave N & Mercer St"); Locations.Add("Westlake Station"); Locations.Add("Yesler Way & 5th Ave"); Locations.Add("Yesler Way & 6th Ave S"); Locations.Add("Yesler Way & 8th Ave S"); Locations.Add("Yesler Way & Prefontaine Pl S"); #endregion XAMLAutoCompleteBox.ItemsSource = Locations; RingerSlider.ValueChanged += RingerSlider_ValueChanged; VibrateSlider.ValueChanged += VibrateSlider_ValueChanged; DistanceSettingSlider.ValueChanged += DistanceSettingSlider_ValueChanged; isCurrentLocationCenter = false; isDestinationSearched = false; isCurrentLocationChanged = false; isTyping = true; isDestinationBoxFirstClick = false; isMapFocused = false; GetCurrentCoordinates(); // Map Page Events XAMLAutoCompleteBox.Tap += XAMLAutoCompleteBox_Tap; XAMLAutoCompleteBox.KeyUp += XAMLAutoCompleteBox_KeyUp; //DestinationTextBox.Tap += DestinationTextBox_Tap; //DestinationTextBox.TextChanged += DestinationTextBox_TextChanged; XAMLMap.Tap += XAMLMap_Tap; //XAMLMap.LostFocus += XAMLMap_LostFocus; XAMLMap.GotFocus += XAMLMap_GotFocus; //this.Tap += MainPage_Tap; //MainMediaElement.MediaEnded += MainMediaElement_MediaEnded; MainMediaElement.MediaOpened += MainMediaElement_MediaOpened; // Setting Page Events DistanceSettingSlider.MouseEnter += DistanceSettingSlider_MouseEnter; DistanceSettingSlider.MouseLeave += DistanceSettingSlider_MouseLeave; /* SoundSettingButton.MouseEnter += SoundSettingTextBox_MouseEnter; SoundSettingButton.MouseLeave += SoundSettingTextBox_MouseLeave; */ SoundSettingButton.Click += SoundSettingButton_Click; VibrateSettingButton.Click += VibrateSettingButton_Click; //SoundSettingTextBox.BorderBrush = new SolidColorBrush((Color)Application.Current.Resources["PhoneAccentColor"]); XAMLAutoCompleteBox.BorderBrush = new SolidColorBrush((Color)Application.Current.Resources["PhoneAccentColor"]); if ((Visibility)Application.Current.Resources["PhoneDarkThemeVisibility"] == Visibility.Visible) { SoundSettingButton.BorderBrush = new SolidColorBrush(Colors.White); } else { SoundSettingButton.BorderBrush = new SolidColorBrush(Colors.Black); } // Sample code to localize the ApplicationBar BuildLocalizedApplicationBar(); }
void tt_Tick(object sender, EventArgs e) { vibrateCont = VibrateController.Default; vibrateCont.Start(new TimeSpan(0, 0, 0, 0, 500)); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { currentGameState = GameState.menu; backgroundTop = new ParallaxingBackground(this); backgroundMid = new ParallaxingBackground(this); backgroundBot = new ParallaxingBackground(this); backgroundTop.Initialize(121, 1f); backgroundMid.Initialize(142, 0.66f); backgroundBot.Initialize(174, 0.33f); field2 = new Field(this, 0, new Vector2(192, 0)); field3 = new Field(this, 1, new Vector2(459, 0)); field5 = new Field(this, 2, new Vector2(75, 330)); field7 = new Field(this, 3, new Vector2(325, 330)); otherField = new Field(this, 4, new Vector2(575, 330)); redField = new Field(this, 5, new Vector2(725, 165)); numbers = new List<Number>(); explosions = new List<Explosion>(); vibratecontroller = VibrateController.Default; initPreservation(); gamePaused = false; base.Initialize(); }
public ProximitySensor() { _vibrator = VibrateController.Default; _proximity = Proximity.Infinity; }
// コンストラクタ。 public ReadyAndMeasurement() { InitializeComponent(); this.MeasureMentAllow = 0; this.StartCountDown = 5; this.TotalResultScore = 0; this.CoolnessScore = 0; this.AmbitionScore = 0; this.IsSensorSupport = true; _tmr = new DispatcherTimer(); _tmr.Interval = TimeSpan.FromSeconds(1); try { if (!Motion.IsSupported) { throw new NotSupportedException(); } } catch (NotSupportedException) { MessageBox.Show("端末がモーションセンサーに対応していないためアプリケーションを続行出来ません。"); this.IsSensorSupport = false; } if (this.IsSensorSupport) { this.HowToMeasure.Begin(); _motion = new Motion(); _motion.TimeBetweenUpdates = TimeSpan.FromMilliseconds(100); _vibCon = VibrateController.Default; _tmr.Tick += new EventHandler(_tmr_Tick); _motion.CurrentValueChanged += new EventHandler<SensorReadingEventArgs<MotionReading>>(motion_CurrentValueChanged); } else { this.NotSupportedSensor.Begin(); } }
public void Error() { vibrateCont = VibrateController.Default; vibrateCont.Start(new TimeSpan(0, 0, 0, 0, 500)); }
void segundoPlano_ProgressChanged(object sender, ProgressChangedEventArgs e) { vibrateCont = VibrateController.Default; vibrateCont.Start(new TimeSpan(0, 0, 0, 3, 0)); segundoPlano.CancelAsync(); }
private void TiempoVibracion(double tiempo) { objVibrador = VibrateController.Default; objVibrador.Start(TimeSpan.FromSeconds(tiempo)); }
protected override void UnloadContent() { accelSensor = null; indicator = null; basketLeft = null; basketOpeningLeft = null; basketRight = null; mama = null; boy = null; toy = null; talkingBubble = null; gameStorage = null; toysBackground = null; toysForeground = null; toyName = null; gameStorage = null; spriteBatch = null; mannTexture = null; mannTexture2 = null; mannTexture3 = null; basketTxt = null; boyDissapointedTxt = null; roomTexture = null; crayonTxt = null; guiBubbleTxt = null; basketLeftTxt = null; basketOpeningTxt = null; loadScreen = null; pauseScreenTxt = null; indicatorTxt = null; resumeTxt = null; restartTxt = null; pauseButtonTxt = null; menuButtonTxt = null; mamaTxt = null; roomdooropen = null; mannRect = Rectangle.Empty; bskHit = Rectangle.Empty; basketLeftRect = Rectangle.Empty; mannRect2 = Rectangle.Empty; mannRect3 = Rectangle.Empty; defaultRect = Rectangle.Empty; roomRect = Rectangle.Empty; indicatorRct = Rectangle.Empty; crayonRect = Rectangle.Empty; guiBubbleRct = Rectangle.Empty; basketOpeningRct = Rectangle.Empty; basketRightRect = Rectangle.Empty; basketOpeningLRct = Rectangle.Empty; basketOpeningRRct = Rectangle.Empty; bskHitL = Rectangle.Empty; bskHitR = Rectangle.Empty; pauseScreenRect = Rectangle.Empty; restartRect = Rectangle.Empty; resumeRect = Rectangle.Empty; pauseButtonRect = Rectangle.Empty; menuButtonRect = Rectangle.Empty; mamaRct = Rectangle.Empty; mannRect4 = Rectangle.Empty; gameGUI = null; colorList = null; rnd = null; toy = null; spriteFont = null; boy = null; roomBackground = null; basketOpening = null; basketOpeningLeft = null; basketOpeningRight = null; basketRight = null; pauseScreen = null; resumeButton = null; restartButton = null; pauseButton = null; menuButton = null; indicator = null; mama = null; Components.Clear(); for (int i = 0; i < rectangles.Length; i++) { rectangles[i] = Rectangle.Empty; } if (crayons != null) { for (int c = 0; c < crayons.Length; c++) { crayons[c] = null; } } crayons = null; backgroundMusic = null; yeah = null; ohno = null; myBoy = null; toysCollected.Clear(); toysCollected = null; yeahinst = null; ohnoinst = null; backgroundMusicInst = null; myBoyInst = null; graphics = null; vibration = null; gameMS = null; toysBackground = null; toysForeground = null; toyName = string.Empty; toyNamePrefix = string.Empty; musicStateStopped = string.Empty; for (int r = 0; r < rectangles.Length; r++) rectangles[r] = Rectangle.Empty; Content.Unload(); while (Components.Count > 0) Components.RemoveAt(0); for (int txt = 0; txt < textures.Length; txt++) { textures[txt] = null; } textures = null; unLoadPauseScreen(); base.UnloadContent(); string test = GC.GetTotalMemory(true).ToString(); }