This file contains 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 static bool IsConnectedToInternet() | |
{ | |
ConnectionProfile connectionProfile = NetworkInformation.GetInternetConnectionProfile(); | |
return (connectionProfile!=null && connectionProfile.GetNetworkConnectivityLevel() == NetworkConnectivityLevel.InternetAcces); | |
} |
This file contains 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
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item"> | |
<TemplateData> | |
<DefaultName>Encrypted Config.encryptedconfig</DefaultName> | |
<Name>Encrypted Config</Name> | |
<Description>Encrypted Config</Description> | |
<ProjectType>CSharp</ProjectType> | |
<SortOrder>10</SortOrder> | |
<Icon>__TemplateIcon.ico</Icon> | |
</TemplateData> | |
<WizardExtension> |
This file contains 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
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item"> | |
<TemplateData> | |
<DefaultName>app.encryptedconfig</DefaultName> | |
<Name>Encrypted Config</Name> | |
<Description>Encrypted Config</Description> | |
<ProjectType>CSharp</ProjectType> | |
<SortOrder>10</SortOrder> | |
<Icon>__TemplateIcon.ico</Icon> | |
</TemplateData> | |
<WizardExtension> |
This file contains 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
from p in Portfolio | |
.Expand("Sectors") | |
.Expand("Technologies") | |
.Expand("Customers") | |
select p |
This file contains 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
create sequence SampleSequence as int | |
start with 1 -- Start with value 1 | |
increment by 1-- Increment with value 1 | |
minvalue 0 -- Minimum value to start is zero | |
maxvalue 100 -- Maximum it can go to 100 | |
no cycle -- Do not go above 100 | |
cache 50 -- Increment 50 values in memory rather than incrementing from IO |
This file contains 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
SELECT NEXT VALUE FOR dbo.SampleSequence AS seq_no; |
This file contains 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
SELECT * FROM PRODUCTS | |
ORDER BY PRODUCTNAME | |
OFFSET 10 ROWS | |
FETCH NEXT 10 ROWS ONLY |
This file contains 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
<ComboBox x:Name="Categories" Grid.Column="2" Height="30" Width="300" > | |
<ComboBox.ItemTemplate> | |
<DataTemplate> | |
<Button | |
caliburn:Message.Attach="Filter(Category)"> | |
<TextBlock x:Name="Category" Margin="0,0,0,10" Text="{Binding Category}"/> | |
</Button> | |
</DataTemplate> | |
</ComboBox.ItemTemplate> | |
</ComboBox> |
This file contains 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
<ComboBox x:Name="Categories" Grid.Column="2" Height="30" Width="300" > | |
<ComboBox.ItemTemplate> | |
<DataTemplate> | |
<Button | |
caliburn:Action.TargetWithoutContext="{Binding ElementName=pageRoot, Path=DataContext}" | |
caliburn:Message.Attach="Filter(Category)"> | |
<TextBlock x:Name="Category" Margin="0,0,0,10" Text="{Binding Category}"/> | |
</Button> | |
</DataTemplate> | |
</ComboBox.ItemTemplate> |
OlderNewer