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
Top-level Exception | |
Type: System.Exception | |
Message: Could not check project 'C:\Users\clj\Documents\Visual Studio 2010\Projects\5098497 MeterTool\MeterToolSetup\MeterToolSetup.vdproj' for weaving task | |
Source: NotifyPropertyWeaverVsPackage | |
Stack Trace: at NotifyPropertyWeaverVsPackage.MenuConfigure.ContainsWeavingTask(Project project) | |
at NotifyPropertyWeaverVsPackage.MenuConfigure.CommandStatusCheck() | |
Inner Exception 1 | |
Type: System.Xml.XmlException | |
Message: Data at the root level is invalid. Line 1, position 1. |
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
private static void AchievementContext_AchievementsUnlocked(object sender, AchievementEventArgs args) | |
{ | |
if (args.UnlockedAchievements.Any()) | |
{ | |
Debug.WriteLine(string.Format("Achievements unlocked: {0}", | |
string.Join(", ", args.UnlockedAchievements.Select(a => "[" + a.Name + "]")))); | |
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() => | |
{ | |
AchievementNotificationBox.ShowAchievements(args.UnlockedAchievements); |
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
var mapping = | |
from periodControl in tariffAndLoadControlLocalType.PeriodControl | |
let periodControlType = periodControl.PeriodControlType | |
let exceptionDayKey = (int)GetExceptionDayKey(periodControlType) | |
let exceptionDay = ExceptionDays(periodControl) | |
let periods = | |
from period in periodControl.Period | |
let blockId = (int)GetBlockId(periodControlType, period.PeriodType) | |
let dictionary = Get(period) | |
let workingDays = dictionary.ContainsKey(WorkingDay) |
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
<!--Pivot item two--> | |
<controls:PivotItem Header="Chart"> | |
<charts:Chart Theme="Theme3"> | |
<charts:Chart.Series> | |
<charts:DataSeries RenderAs="Pyramid" AxisYType="Primary" DataSource="{Binding Items}"> | |
<charts:DataMapping MemberName="AxisXLabel" Path="Label"></Charts:DataMapping> | |
<charts:DataMapping MemberName="YValue" Path="YValue"></Charts:DataMapping> | |
</charts:DataSeries> | |
</charts:Chart.Series> | |
</charts:Chart> |
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
// remove | |
//private void RecipeListBox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) | |
//{ | |
// ViewModel.SelectedRecipe = (Recipe)RecipeListBox.SelectedItem; | |
//} | |
// replace with: | |
private void HubTile_Tap(object sender, System.Windows.Input.GestureEventArgs e) |
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
<ListBox ItemsSource="{Binding Tiles}" SelectionChanged="ListBox_SelectionChanged"> | |
<ListBox.ItemsPanel> | |
<ItemsPanelTemplate> | |
<toolkit:WrapPanel Orientation="Horizontal" /> | |
</ItemsPanelTemplate> | |
</ListBox.ItemsPanel> | |
<ListBox.ItemTemplate> | |
<DataTemplate> | |
<toolkit:HubTile Title="{Binding Author}" | |
Margin="3" |
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
CultureInfo.CurrentCulture.Calendar.GetWeekOfYear( | |
DateTime.Now, | |
CultureInfo.CurrentCulture.DateTimeFormat.CalendarWeekRule, | |
CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek | |
); |
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 ImageSource ImageUri | |
{ | |
get | |
{ | |
BitmapImage image = new BitmapImage(); | |
try | |
{ | |
image.BeginInit(); | |
image.CacheOption = BitmapCacheOption.OnLoad; |
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
var document = XDocument.Load(File.OpenRead(@"myfile.xml")); | |
var entities = document.Element("ImportExportXml").Element("Entities").Elements("Entity"); | |
var result = | |
entities.Elements("Entity") | |
.SelectMany( | |
e => e.Element("EntityInfo").Element("attributes").Elements("attribute")) | |
.Distinct(); | |
result.Dump(); |
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 WatchItem CurrentWatchItem | |
{ | |
get; | |
set; | |
} | |
private void OnCurrentWatchItemChanged() | |
{ | |
eventAggregator.GetEvent<TickerSymbolSelectedEvent>() | |
.Publish(CurrentWatchItem.TickerSymbol); |