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 class Match : ITwoPlayersGame | |
{ | |
private Board Board { get; set; } | |
private MatchCoordinator Coordinator { get; set; } | |
public Match() | |
{ | |
... | |
} |
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
using System.Collections.Generic; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using ServiceStack.Text; | |
namespace UnitTestProject1 | |
{ | |
[TestClass] | |
public class UnitTest1 | |
{ | |
private readonly List<Person> people = new List<Person> |
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 class Course : ValueObject<Course> | |
{ | |
private readonly string name; | |
private readonly int defaultPriority; | |
public Course(string name, int defaultPriority) | |
{ | |
this.name = name; | |
this.defaultPriority = defaultPriority; | |
} |
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 class Course : ValueObject<Course> | |
{ | |
private string name; | |
private int defaultPriority; | |
public Course(string name, int defaultPriority) | |
{ | |
this.name = name; | |
this.defaultPriority = defaultPriority; | |
} |
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
protected override void OnKeyDown(KeyEventArgs e) | |
{ | |
var modifiers = e.Device.Modifiers; | |
var key = e.Key; | |
if (IsNavigational(key)) | |
{ | |
var shouldSelectAlong = modifiers.HasFlag(ModifierKeys.Shift); | |
var isWordJumpEnabled = modifiers.HasFlag(ModifierKeys.Control); | |
this.MoveCaret(TranslateToDirection(key, modifiers), shouldSelectAlong, isWordJumpEnabled); |
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
namespace SampleForMark | |
{ | |
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var factory = new Factory(injectedFactory => new Reader(injectedFactory)); | |
factory.ExecuteSomething(); |
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
<Window Title="Perspex Test Application" Height="350" Width="525" xmlns="https://github.com/grokys/Perspex"> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition /> | |
</Grid.RowDefinitions> | |
<Menu> | |
<MenuItem Header="File"> | |
<MenuItem Header="Open"> | |
<MenuItem.Icon> |
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
<ListView ScrollViewer.HorizontalScrollBarVisibility="Auto" | |
ScrollViewer.HorizontalScrollMode="Enabled" | |
ScrollViewer.VerticalScrollMode="Disabled" | |
ItemsSource="{Binding Collection}"> | |
<ListView.ItemsPanel> | |
<ItemsPanelTemplate> | |
<StackPanel Background="Transparent" Orientation="Horizontal" /> | |
</ItemsPanelTemplate> | |
</ListView.ItemsPanel> | |
</ListView> |
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
<Page | |
x:Class="App10.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:App10" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:system="using:System" | |
xmlns:collections="using:System.Collections" | |
mc:Ignorable="d"> |
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
void Main() | |
{ | |
var xs = Observable.Interval(TimeSpan.FromSeconds(1)); | |
var bs = new Subject<bool>(); | |
var pxs = xs.Pausable(bs); | |
pxs.Subscribe(x => { Debug.WriteLine(x); }); |
OlderNewer