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 class AreaFallowed | |
{ | |
public AreaFallowed(string gardenID, NodaTime.LocalDate date, int x, int y, int width, int length) | |
{ | |
GardenId = gardenID; | |
Date = date; | |
X = x; | |
Y = y; | |
Width = width; | |
Length = length; |
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="Approve.App" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" | |
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" | |
xmlns:local="clr-namespace:Approve"> | |
<!--Application Resources--> | |
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 mouseDown = Observable.FromEventPattern<MouseButtonEventArgs>(this, "MouseDown") | |
.Select(x => x.EventArgs.GetPosition(this)); | |
var mouseUp = Observable.FromEventPattern<MouseButtonEventArgs>(this, "MouseUp") | |
.Select(x => x.EventArgs.GetPosition(this)); | |
var mouseMove = Observable.FromEventPattern<MouseEventArgs>(this, "MouseMove") | |
.Select(x => x.EventArgs.GetPosition(this)); | |
mouseMove.SkipUntil(mouseDown) |
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
using System; | |
using System.Collections.Generic; | |
using System.Reactive; | |
using System.Reactive.Disposables; | |
using System.Reactive.Linq; | |
using System.Windows.Forms; | |
namespace RxStuff | |
{ | |
class Program | |
{ |
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 class StreamTrackedContentViewModel : ReactiveObject | |
{ | |
public StreamTrackedContentViewModel(Twitter twitterApi) | |
{ | |
Tweets = new ReactiveList<Tweet>(); | |
TweetViewModels = Tweets.CreateDerivedCollection(tweet => new TweetTileViewModel(tweet.CreatedAt, | |
tweet.UserPic, | |
tweet.UserName, | |
tweet.ScreenName, | |
tweet.Text)); |
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 partial class App : Application | |
{ | |
protected override void OnStartup(StartupEventArgs e) | |
{ | |
base.OnStartup(e); | |
//ghetto bootstrap - IS THIS OK? | |
var searchView = new SearchView(); | |
searchView.ViewModel = new SearchViewModel(); | |
searchView.DataContext = searchView.ViewModel; |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Rx ObservableAsPropertyHelper</Title> | |
<Shortcut>rxOAPH</Shortcut> | |
<Description>Code snippet for a ReactiveUI ObservableAsPropertyHelper</Description> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> |
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
using ReactiveUI; | |
using System.Threading.Tasks; | |
using System.Windows.Input; | |
using TwitterFeedAPI; | |
namespace FeedManagement.WPF.Search | |
{ | |
public class SearchViewModel : ReactiveObject, ISearchViewModel | |
{ | |
public IScreen HostScreen { get; protected set; } |
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
I have a Variable defined in my TFS Build template | |
Name:TFSGenProductVersion | |
Type:String | |
Scope:Sequence | |
Default:"3.1.2" | |
I added this to the wixproj | |
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | |
<DefineConstants>Debug;MyProductVersion=0.0.0.1</DefineConstants> |
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
//Special thanks to Andrii Nakryiko and James Nugent | |
//for their help with this code. | |
namespace Infrastructure.EventStorage | |
{ | |
using System; | |
using System.Collections.Concurrent; | |
using System.Net; | |
using System.Text; | |
using System.Threading; | |
using EventStore.ClientAPI; |