This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) | |
{ | |
SettingsCommand urlCommand = new SettingsCommand("urlCommand", "首頁", onSettingsCommand); | |
args.Request.ApplicationCommands.Add(urlCommand); | |
SettingsCommand urlCommand_2 = new SettingsCommand("urlCommand_2", "Bing", onSettingsCommand); | |
args.Request.ApplicationCommands.Add(urlCommand_2); | |
} | |
void onSettingsCommand(IUICommand command) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MainPage() | |
{ | |
this.InitializeComponent(); | |
SettingsPane.GetForCurrentView().CommandsRequested += MainPage_CommandsRequested; | |
} | |
void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal void OnQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) | |
{ | |
this.SearchInput.Text = args.QueryText; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// 在此頁面即將顯示在框架中時叫用。 | |
/// </summary> | |
/// <param name="e">描述如何到達此頁面的事件資料。Parameter | |
/// 屬性通常用來設定頁面。</param> | |
protected override void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
this.SearchInput.Text = e.Parameter.ToString(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnSearchActivated(SearchActivatedEventArgs args) | |
{ | |
base.OnSearchActivated(args); | |
Frame rootFrame = new Frame(); | |
rootFrame.Navigate(typeof(MainPage), args.QueryText); | |
Window.Current.Content = rootFrame; | |
Window.Current.Activate(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Application | |
x:Class="App2.App" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:App2" | |
RequestedTheme="Light"> | |
<Application.Resources> | |
<ResourceDictionary> | |
<ResourceDictionary.MergedDictionaries> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (int i = 0; i < NUM_TARGET; i++) | |
{ | |
tempHead=head; | |
while(tempHead != NULL )//刪頭 | |
{ | |
if (tempHead->fby > 40 || enemy[i].Hitting(tempHead->fbx, tempHead->fby)) | |
{ | |
if(tempHead->next){ | |
tempHead->next->prior = tempHead->prior; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while(tempHead != NULL )//刪頭 | |
{ | |
if (tempHead->fby > 40 || enemy[i].Hitting(tempHead->fbx, tempHead->fby)) | |
{ | |
if(tempHead->next){ | |
tempHead->next->prior = tempHead->prior; | |
} | |
else | |
{ | |
tail = tempHead; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DataSource | |
{ | |
/// <summary> | |
/// 可以在本身使用或巡覽至框架內的空白頁面。 | |
/// </summary> | |
public sealed partial class MainPage : Page | |
{ | |
private List<Data> myDatas; | |
public MainPage() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Page | |
x:Class="DataSource.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:DataSource" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d"> | |
<Page.Resources> |