├── SocialStream
├── wix-app-icon.ico
├── Fonts
│ └── segoeuil.ttf
├── Resources
│ ├── icon.png
│ ├── Audio
│ │ ├── Audio.xgs
│ │ ├── Audio.xsb
│ │ ├── Audio.xwb
│ │ └── Samples
│ │ │ ├── adminPanel_open.wav
│ │ │ ├── streamItem_close.wav
│ │ │ ├── streamItem_flip.wav
│ │ │ ├── streamItem_tapDown.wav
│ │ │ └── streamItem_tapRelease.wav
│ ├── AdminBackground.png
│ ├── WindowBackground.png
│ ├── WindowBackground_Vertical.png
│ └── Converters.xaml
├── Properties
│ ├── AssemblyInfo.cs
│ └── DesignTimeResources.xaml
├── SocialStream.xml
├── App.xaml
├── Service References
│ └── MicrosoftTagService
│ │ ├── SocialStream.MicrosoftTagService.Tag.datasource
│ │ ├── Reference.svcmap
│ │ ├── Service1.xsd
│ │ └── configuration.svcinfo
├── Helpers
│ ├── ImageLoaderOptions.cs
│ ├── ScatterFlip.cs
│ ├── VisualEnumerable.cs
│ ├── SurfaceState.cs
│ ├── VisualTree.cs
│ ├── TouchChangedEvents.cs
│ └── Audio.cs
├── Controls
│ ├── BackgroundImage.xaml
│ ├── RiverItemVisibilityInfo.cs
│ ├── AdminIndicatorLight.xaml
│ ├── BackgroundImage.xaml.cs
│ ├── UserSourceRoutedEventArgs.cs
│ ├── RiverItemHistoryInfo.cs
│ ├── RiverContent
│ │ ├── SmallImage.xaml.cs
│ │ ├── SmallNews.xaml.cs
│ │ ├── SmallImage.xaml
│ │ ├── SmallTweet.xaml.cs
│ │ ├── LargeTweet.xaml.cs
│ │ ├── SmallNews.xaml
│ │ └── SmallTweet.xaml
│ ├── AdminIndicatorLight.xaml.cs
│ └── CloseTimer.cs
├── NativeMethods.cs
├── Converters
│ ├── TitleCaseConverter.cs
│ ├── BooleanConverter.cs
│ ├── VisibilityConverter.cs
│ ├── RelativeTimeConverter.cs
│ └── MultiVisibilityConverter.cs
├── SurfaceWindow.xaml
└── MouseTouchDevice.cs
├── SocialStream.ConfigTool
├── wix-app-icon.ico
├── Fonts
│ ├── SegoeWP.ttf
│ ├── SegoeWP-Bold.ttf
│ └── SegoeWP-Light.ttf
├── Resources
│ ├── BannerTop.png
│ └── BannerBottom.png
├── CustomDictionary.xml
├── Properties
│ ├── Settings.settings
│ ├── AssemblyInfo.cs
│ └── Settings.Designer.cs
├── Command
│ ├── CancelCommand.cs
│ ├── SaveCommand.cs
│ ├── AddNewsBanCommand.cs
│ ├── AddFlickrBanCommand.cs
│ ├── AddNewsQueryCommand.cs
│ ├── AddTwitterBanCommand.cs
│ ├── AddFacebookBanCommand.cs
│ ├── AddFlickrQueryCommand.cs
│ ├── AddTwitterQueryCommand.cs
│ ├── AddFacebookQueryCommand.cs
│ ├── SetAutoScrollDirectionCommand.cs
│ ├── RemoveNewsBanCommand.cs
│ ├── RemoveFlickrBanCommand.cs
│ ├── RemoveNewsQueryCommand.cs
│ ├── RemoveTwitterBanCommand.cs
│ ├── RemoveFacebookBanCommand.cs
│ ├── RemoveFlickrQueryCommand.cs
│ ├── RemoveTwitterQueryCommand.cs
│ ├── RemoveFacebookQueryCommand.cs
│ ├── SetEnableContentResizing.cs
│ ├── SetProfanityFilterCommand.cs
│ ├── SetDistributeContentEvenlyCommand.cs
│ ├── LoadDefaultsCommand.cs
│ ├── SetDisplayFbContentFromOthersCommand.cs
│ └── SetBackgroundImagePathCommand.cs
├── App.xaml
├── Controls
│ ├── MicrosoftTagEditor.xaml.cs
│ ├── GeneralEditor.xaml.cs
│ ├── ProfanityEditor.xaml.cs
│ ├── MicrosoftTagEditor.xaml
│ ├── NewsEditor.xaml.cs
│ ├── FlickrEditor.xaml.cs
│ └── TwitterEditor.xaml.cs
├── app.manifest
├── Settings.StyleCop
├── MainWindow.xaml
├── VO
│ └── BindableStringVO.cs
├── app.config
├── MainWindow.xaml.cs
├── Helpers
│ ├── BindableBase.cs
│ └── VisualEnumerables.cs
├── Validators
│ ├── IsValidQueryStringRule.cs
│ ├── IsValidUriRule.cs
│ ├── IsValidDoubleRule.cs
│ ├── IsValidTimeSpanValueRule.cs
│ ├── IsValidDateRule.cs
│ ├── IsValidSizeRule.cs
│ ├── IsValidHexValueRule.cs
│ └── IsValidHexColorRule.cs
├── Converters
│ ├── DoubleToPercentageConverter.cs
│ ├── HexStringToLongConverter.cs
│ ├── BooleanConverter.cs
│ ├── IsEqualConverter.cs
│ └── VisibilityConverter.cs
├── App.xaml.cs
└── GlobalSuppressions.cs
├── FeedProcessor
├── packages.config
├── CustomDictionary.xml
├── Enums
│ ├── RetrievalOrder.cs
│ ├── ContentType.cs
│ ├── SourceType.cs
│ └── BlockReason.cs
├── FeedItems
│ ├── StatusFeedItem.cs
│ └── NewsFeedItem.cs
├── Contracts
│ ├── TwitterJsonUser.cs
│ └── TwitterJsonStatus.cs
├── GotNewFeedItemEventArgs.cs
├── SourceStatusUpdatedEventArgs.cs
├── Net
│ ├── AsyncWebResultEventArgs.cs
│ └── AsyncWebRequest.cs
├── CachePurgeEventArgs.cs
├── Settings.StyleCop
├── Feeds
│ ├── FlickrGroupFeed.cs
│ ├── FlickrUserFeed.cs
│ └── TwitterUserFeed.cs
├── Properties
│ └── AssemblyInfo.cs
├── GlobalSuppressions.cs
└── FeedItem.cs
├── packages
├── Facebook.6.0.16
│ ├── lib
│ │ ├── sl5
│ │ │ └── Facebook.dll
│ │ ├── WinRT
│ │ │ └── Facebook.dll
│ │ ├── net45
│ │ │ └── Facebook.dll
│ │ ├── net35-client
│ │ │ └── Facebook.dll
│ │ ├── net40-client
│ │ │ └── Facebook.dll
│ │ └── sl4-windowsphone71
│ │ │ └── Facebook.dll
│ ├── Facebook.6.0.16.nupkg
│ └── readme.txt
└── repositories.config
├── SocialStream.Installer
├── Resources
│ ├── wix-banner.jpg
│ ├── wix-intro.jpg
│ └── wix-app-icon.ico
└── SocialStream.Installer.wixproj
├── .gitattributes
├── README.md
├── XAMLConverter
└── HtmlTokenType.cs
└── .gitignore
/SocialStream/wix-app-icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/wix-app-icon.ico
--------------------------------------------------------------------------------
/SocialStream/Fonts/segoeuil.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Fonts/segoeuil.ttf
--------------------------------------------------------------------------------
/SocialStream/Resources/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/icon.png
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/wix-app-icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.ConfigTool/wix-app-icon.ico
--------------------------------------------------------------------------------
/SocialStream/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Properties/AssemblyInfo.cs
--------------------------------------------------------------------------------
/SocialStream/Resources/Audio/Audio.xgs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/Audio/Audio.xgs
--------------------------------------------------------------------------------
/SocialStream/Resources/Audio/Audio.xsb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/Audio/Audio.xsb
--------------------------------------------------------------------------------
/SocialStream/Resources/Audio/Audio.xwb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/Audio/Audio.xwb
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Fonts/SegoeWP.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.ConfigTool/Fonts/SegoeWP.ttf
--------------------------------------------------------------------------------
/SocialStream/Resources/AdminBackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/AdminBackground.png
--------------------------------------------------------------------------------
/FeedProcessor/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SocialStream/Resources/WindowBackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/WindowBackground.png
--------------------------------------------------------------------------------
/packages/Facebook.6.0.16/lib/sl5/Facebook.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/packages/Facebook.6.0.16/lib/sl5/Facebook.dll
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Fonts/SegoeWP-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.ConfigTool/Fonts/SegoeWP-Bold.ttf
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Fonts/SegoeWP-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.ConfigTool/Fonts/SegoeWP-Light.ttf
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Resources/BannerTop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.ConfigTool/Resources/BannerTop.png
--------------------------------------------------------------------------------
/SocialStream.Installer/Resources/wix-banner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.Installer/Resources/wix-banner.jpg
--------------------------------------------------------------------------------
/SocialStream.Installer/Resources/wix-intro.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.Installer/Resources/wix-intro.jpg
--------------------------------------------------------------------------------
/packages/Facebook.6.0.16/Facebook.6.0.16.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/packages/Facebook.6.0.16/Facebook.6.0.16.nupkg
--------------------------------------------------------------------------------
/packages/Facebook.6.0.16/lib/WinRT/Facebook.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/packages/Facebook.6.0.16/lib/WinRT/Facebook.dll
--------------------------------------------------------------------------------
/packages/Facebook.6.0.16/lib/net45/Facebook.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/packages/Facebook.6.0.16/lib/net45/Facebook.dll
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Resources/BannerBottom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.ConfigTool/Resources/BannerBottom.png
--------------------------------------------------------------------------------
/SocialStream.Installer/Resources/wix-app-icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream.Installer/Resources/wix-app-icon.ico
--------------------------------------------------------------------------------
/SocialStream/Resources/WindowBackground_Vertical.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/WindowBackground_Vertical.png
--------------------------------------------------------------------------------
/packages/Facebook.6.0.16/lib/net35-client/Facebook.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/packages/Facebook.6.0.16/lib/net35-client/Facebook.dll
--------------------------------------------------------------------------------
/packages/Facebook.6.0.16/lib/net40-client/Facebook.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/packages/Facebook.6.0.16/lib/net40-client/Facebook.dll
--------------------------------------------------------------------------------
/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SocialStream/Resources/Audio/Samples/adminPanel_open.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/Audio/Samples/adminPanel_open.wav
--------------------------------------------------------------------------------
/SocialStream/Resources/Audio/Samples/streamItem_close.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/Audio/Samples/streamItem_close.wav
--------------------------------------------------------------------------------
/SocialStream/Resources/Audio/Samples/streamItem_flip.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/Audio/Samples/streamItem_flip.wav
--------------------------------------------------------------------------------
/SocialStream/Resources/Audio/Samples/streamItem_tapDown.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/Audio/Samples/streamItem_tapDown.wav
--------------------------------------------------------------------------------
/packages/Facebook.6.0.16/lib/sl4-windowsphone71/Facebook.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/packages/Facebook.6.0.16/lib/sl4-windowsphone71/Facebook.dll
--------------------------------------------------------------------------------
/SocialStream/Resources/Audio/Samples/streamItem_tapRelease.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stimulant/SocialStream/HEAD/SocialStream/Resources/Audio/Samples/streamItem_tapRelease.wav
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/CustomDictionary.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | flickr
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/FeedProcessor/CustomDictionary.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | flickr
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/SocialStream/Properties/DesignTimeResources.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/CancelCommand.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | namespace SocialStream.ConfigTool.Command
4 | {
5 | ///
6 | /// Called when the cancel button is clicked.
7 | ///
8 | internal static class CancelCommand
9 | {
10 | ///
11 | /// Exits the app.
12 | ///
13 | internal static void Execute()
14 | {
15 | Application.Current.Shutdown();
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/SaveCommand.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using SocialStream.ConfigTool.Model;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to save settings to disk.
8 | ///
9 | internal static class SaveCommand
10 | {
11 | ///
12 | /// Save settings to disk.
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.Save();
17 | Application.Current.Shutdown();
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/AddNewsBanCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to add an item to the NewsBans list
8 | ///
9 | internal static class AddNewsBanCommand
10 | {
11 | ///
12 | /// Adds a new blank item to NewsBans
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.NewsBans.Add(new BindableStringVO());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/FeedProcessor/Enums/RetrievalOrder.cs:
--------------------------------------------------------------------------------
1 | namespace FeedProcessor.Enums
2 | {
3 | ///
4 | /// Defines the order in which items are retrieved from the feed processor.
5 | ///
6 | public enum RetrievalOrder
7 | {
8 | ///
9 | /// Items will be displayed in roughly chronological order. Whenever a new item arrives, it will be displayed as soon as possible.
10 | ///
11 | Chronological,
12 |
13 | ///
14 | /// Items will be displayed randomly.
15 | ///
16 | Random
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/AddFlickrBanCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to add an item to the FlickrBans list
8 | ///
9 | internal static class AddFlickrBanCommand
10 | {
11 | ///
12 | /// Adds a new blank item to FlickrBans
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.FlickrBans.Add(new BindableStringVO());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/AddNewsQueryCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to add a query to the NewsQueries list
8 | ///
9 | internal static class AddNewsQueryCommand
10 | {
11 | ///
12 | /// Adds a blank query to NewsQueries
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.NewsQueries.Add(new BindableStringVO());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/AddTwitterBanCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to add an item to the TwitterBans list
8 | ///
9 | internal static class AddTwitterBanCommand
10 | {
11 | ///
12 | /// Adds a new blank item to TwitterBans
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.TwitterBans.Add(new BindableStringVO());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/AddFacebookBanCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to add an item to the FacebookBans list
8 | ///
9 | internal static class AddFacebookBanCommand
10 | {
11 | ///
12 | /// Adds a new blank item to FacebookBans
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.FacebookBans.Add(new BindableStringVO());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/AddFlickrQueryCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to add a query to the FlickQueries list
8 | ///
9 | internal static class AddFlickrQueryCommand
10 | {
11 | ///
12 | /// Adds a blank query to FlickrQueries
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.FlickrQueries.Add(new BindableStringVO());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/AddTwitterQueryCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to add a query to the TwitterQueries list
8 | ///
9 | internal static class AddTwitterQueryCommand
10 | {
11 | ///
12 | /// Adds a blank query to TwitterQueries
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.TwitterQueries.Add(new BindableStringVO());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/AddFacebookQueryCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to add a query to the FacebookQueries list
8 | ///
9 | internal static class AddFacebookQueryCommand
10 | {
11 | ///
12 | /// Adds a blank query to FacebookQueries
13 | ///
14 | internal static void Execute()
15 | {
16 | AppState.Instance.FacebookQueries.Add(new BindableStringVO());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Controls/MicrosoftTagEditor.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Data;
4 |
5 | namespace SocialStream.ConfigTool.Controls
6 | {
7 | ///
8 | /// Interaction logic for MicrosoftTagEditor.xaml
9 | ///
10 | public partial class MicrosoftTagEditor : UserControl
11 | {
12 | ///
13 | /// Initializes a new instance of the class.
14 | ///
15 | public MicrosoftTagEditor()
16 | {
17 | InitializeComponent();
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream/SocialStream.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Social Stream
5 | View the latest from Twitter, Flickr, and news feeds.
6 | %PROGRAMFILES%\Social Stream for Microsoft Surface\SocialStream.exe
7 |
8 | %PROGRAMFILES%\Social Stream for Microsoft Surface\Resources\icon.png
9 |
10 |
--------------------------------------------------------------------------------
/SocialStream/Resources/Converters.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/FeedProcessor/Enums/ContentType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace FeedProcessor.Enums
4 | {
5 | ///
6 | /// Different types of content that a feed item can describe.
7 | ///
8 | [Flags]
9 | public enum ContentType
10 | {
11 | ///
12 | /// The item is an image.
13 | ///
14 | Image = 1,
15 |
16 | ///
17 | /// The item is a status message.
18 | ///
19 | Status = 2,
20 |
21 | ///
22 | /// The item is a news post.
23 | ///
24 | News = 4
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/SetAutoScrollDirectionCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 |
3 | namespace SocialStream.ConfigTool.Command
4 | {
5 | ///
6 | /// Called to set the AutoScrollDirection
7 | ///
8 | internal static class SetAutoScrollDirectionCommand
9 | {
10 | ///
11 | /// Sets the SetAutoScrollDirectionCommand property.
12 | ///
13 | /// The Direction.
14 | internal static void Execute(int Direction)
15 | {
16 | AppState.Instance.AutoScrollDirection = Direction;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/RemoveNewsBanCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to remove a query from the NewsBans list
8 | ///
9 | internal static class RemoveNewsBanCommand
10 | {
11 | ///
12 | /// Removes the specified item from NewsBans
13 | ///
14 | /// The query.
15 | internal static void Execute(BindableStringVO query)
16 | {
17 | AppState.Instance.NewsBans.Remove(query);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/RemoveFlickrBanCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to remove a query from the FlickrBans list
8 | ///
9 | internal static class RemoveFlickrBanCommand
10 | {
11 | ///
12 | /// Removes the specified item from FlickrBans
13 | ///
14 | /// The query.
15 | internal static void Execute(BindableStringVO query)
16 | {
17 | AppState.Instance.FlickrBans.Remove(query);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/RemoveNewsQueryCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to remove a query from the NewsQueries list
8 | ///
9 | internal static class RemoveNewsQueryCommand
10 | {
11 | ///
12 | /// Removes the specified item from NewsQueries
13 | ///
14 | /// The query.
15 | internal static void Execute(BindableStringVO query)
16 | {
17 | AppState.Instance.NewsQueries.Remove(query);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/RemoveTwitterBanCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to remove a query from the TwitterBans list
8 | ///
9 | internal static class RemoveTwitterBanCommand
10 | {
11 | ///
12 | /// Removes the specified item from TwitterBans
13 | ///
14 | /// The query.
15 | internal static void Execute(BindableStringVO query)
16 | {
17 | AppState.Instance.TwitterBans.Remove(query);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/RemoveFacebookBanCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to remove a query from the FacebookBans list
8 | ///
9 | internal static class RemoveFacebookBanCommand
10 | {
11 | ///
12 | /// Removes the specified item from FacebookBans
13 | ///
14 | /// The query.
15 | internal static void Execute(BindableStringVO query)
16 | {
17 | AppState.Instance.FacebookBans.Remove(query);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/RemoveFlickrQueryCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to remove a query from the FlickrQueries list
8 | ///
9 | internal static class RemoveFlickrQueryCommand
10 | {
11 | ///
12 | /// Removes the specified item from FlickrQueries
13 | ///
14 | /// The query.
15 | internal static void Execute(BindableStringVO query)
16 | {
17 | AppState.Instance.FlickrQueries.Remove(query);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/RemoveTwitterQueryCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to remove a query from the TwitterQueries list
8 | ///
9 | internal static class RemoveTwitterQueryCommand
10 | {
11 | ///
12 | /// Removes the specified item from TwitterQueries
13 | ///
14 | /// The query.
15 | internal static void Execute(BindableStringVO query)
16 | {
17 | AppState.Instance.TwitterQueries.Remove(query);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/RemoveFacebookQueryCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 | using SocialStream.ConfigTool.VO;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to remove a query from the FacebookQueries list
8 | ///
9 | internal static class RemoveFacebookQueryCommand
10 | {
11 | ///
12 | /// Removes the specified item from FacebookQueries
13 | ///
14 | /// The query.
15 | internal static void Execute(BindableStringVO query)
16 | {
17 | AppState.Instance.FacebookQueries.Remove(query);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Settings.StyleCop:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | False
8 |
9 |
10 |
11 |
12 | False
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/SocialStream/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/FeedProcessor/Enums/SourceType.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace FeedProcessor.Enums
3 | {
4 | ///
5 | /// Different types of sources that a news item can come from.
6 | ///
7 | public enum SourceType
8 | {
9 | ///
10 | /// The item came from Flickr.
11 | ///
12 | Flickr,
13 |
14 | ///
15 | /// The item came from twitter.
16 | ///
17 | Twitter,
18 |
19 | ///
20 | /// The item came from a news feed.
21 | ///
22 | News,
23 |
24 | ///
25 | /// The item came from Facebook.
26 | ///
27 | Facebook
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/SetEnableContentResizing.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 |
3 | namespace SocialStream.ConfigTool.Command
4 | {
5 | ///
6 | /// Called to set whether to enable content resizing
7 | ///
8 | internal static class SetEnableContentResizingCommand
9 | {
10 | ///
11 | /// Sets the EnableContentResizing property.
12 | ///
13 | /// if set to true [enable content resizing].
14 | internal static void Execute(bool enableContentResizing)
15 | {
16 | AppState.Instance.EnableContentResizing = enableContentResizing;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream/Service References/MicrosoftTagService/SocialStream.MicrosoftTagService.Tag.datasource:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | SocialStream.MicrosoftTagService.Tag, Service References.MicrosoftTagService.Reference.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
10 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/SetProfanityFilterCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 |
3 | namespace SocialStream.ConfigTool.Command
4 | {
5 | ///
6 | /// Called to set whether the profanity filter is enabled
7 | ///
8 | internal static class SetProfanityFilterCommand
9 | {
10 | ///
11 | /// Sets the IsSafeSearchEnabled property.
12 | ///
13 | /// if set to true [is profanity filter enabled].
14 | internal static void Execute(bool isProfanityFilterEnabled)
15 | {
16 | AppState.Instance.IsProfanityFilterEnabled = isProfanityFilterEnabled;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/FeedProcessor/FeedItems/StatusFeedItem.cs:
--------------------------------------------------------------------------------
1 | using FeedProcessor.Enums;
2 |
3 | namespace FeedProcessor.FeedItems
4 | {
5 | ///
6 | /// Represents a feed item whose content is a status message.
7 | ///
8 | public class StatusFeedItem : FeedItem
9 | {
10 | ///
11 | /// Initializes a new instance of the class.
12 | ///
13 | public StatusFeedItem()
14 | {
15 | ContentType = ContentType.Status;
16 | }
17 |
18 | ///
19 | /// Gets or sets the status message.
20 | ///
21 | /// The status message.
22 | public string Status { get; set; }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/SetDistributeContentEvenlyCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 |
3 | namespace SocialStream.ConfigTool.Command
4 | {
5 | ///
6 | /// Called to set whether or not to distribute content evenly.
7 | ///
8 | internal static class SetDistributeContentEvenlyCommand
9 | {
10 | ///
11 | /// Sets the DistributeContentEvenly property.
12 | ///
13 | /// if set to true [distribute content evenly].
14 | internal static void Execute(bool distributeContentEvenly)
15 | {
16 | AppState.Instance.DistributeContentEvenly = distributeContentEvenly;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/LoadDefaultsCommand.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using SocialStream.ConfigTool.Model;
3 | using SocialStream.ConfigTool.Properties;
4 |
5 | namespace SocialStream.ConfigTool.Command
6 | {
7 | ///
8 | /// Called to load default config values.
9 | ///
10 | internal static class LoadDefaultsCommand
11 | {
12 | ///
13 | /// Loads the default config values.
14 | ///
15 | internal static void Execute()
16 | {
17 | if (MessageBox.Show(Resources.DefaultsConfirmation, string.Empty, MessageBoxButton.OKCancel) == MessageBoxResult.OK)
18 | {
19 | AppState.Instance.LoadDefaults();
20 | }
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/SocialStream/Helpers/ImageLoaderOptions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SocialStream.Helpers
4 | {
5 | ///
6 | /// Options to pass to the background worker to tell it how to load the image.
7 | ///
8 | internal class ImageLoaderOptions
9 | {
10 | ///
11 | /// Gets or sets the URI to load.
12 | ///
13 | /// The URI to load.
14 | public Uri Uri { get; set; }
15 |
16 | ///
17 | /// Gets or sets the width to decode the image to. If -1, use the natural size of the image.
18 | ///
19 | /// The width to decode the image to. If -1, use the natural size of the image.
20 | public int DecodePixelWidth { get; set; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/FeedProcessor/Contracts/TwitterJsonUser.cs:
--------------------------------------------------------------------------------
1 | using System.Runtime.Serialization;
2 |
3 | namespace FeedProcessor.Contracts
4 | {
5 | ///
6 | /// A datacontract for deserializing users from twitter.
7 | ///
8 | [DataContract]
9 | public class TwitterJsonUser
10 | {
11 | ///
12 | /// Gets or sets the user's screen name.
13 | ///
14 | /// The screen_name.
15 | [DataMember]
16 | public string screen_name { get; set; }
17 |
18 | ///
19 | /// Gets or sets the url to the user's profile image.
20 | ///
21 | /// The profile_image_url.
22 | [DataMember]
23 | public string profile_image_url { get; set; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/SetDisplayFbContentFromOthersCommand.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.ConfigTool.Model;
2 |
3 | namespace SocialStream.ConfigTool.Command
4 | {
5 | ///
6 | /// Called to set whether to display content from other users on a facebook page
7 | ///
8 | internal static class SetDisplayFbContentFromOthersCommand
9 | {
10 | ///
11 | /// Sets the DisplayFbContentFromOthers property.
12 | ///
13 | /// if set to true [display fb content from others].
14 | internal static void Execute(bool displayFbContentFromOthers)
15 | {
16 | AppState.Instance.DisplayFbContentFromOthers = displayFbContentFromOthers;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/FeedProcessor/GotNewFeedItemEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace FeedProcessor
7 | {
8 | ///
9 | /// The EventArgs object passed along with the Feed.GotNewFeedItem event.
10 | ///
11 | internal class GotNewFeedItemEventArgs : EventArgs
12 | {
13 | ///
14 | /// The new feed item.
15 | ///
16 | internal readonly FeedItem FeedItem;
17 |
18 | ///
19 | /// Initializes a new instance of the class.
20 | ///
21 | /// The new feed item.
22 | internal GotNewFeedItemEventArgs(FeedItem feedItem)
23 | {
24 | FeedItem = feedItem;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | SocialStream
2 | ============
3 |
4 | The Social Stream application is a "river of news" for Windows 7 touch screens (including the SUR40 product) which displays an endless stream of items from any Twitter, Flickr, and RSS feeds that have been configured. Content orients to the user when activated, and each item can be flipped over to reveal a Microsoft Tag on the back, which lets a visitor take the content with them outside of the venue. The app can be easily styled of match the brand of an event or venue, and administrators can remove objectionable content with no hassle.
5 |
6 | Installer:
7 | http://stimulant.io/products/
8 |
9 | Blog post:
10 | http://stimulant.io/wp/index.php/blog/2011/09/microsoft-surface-live-stream/
11 |
12 | Video:
13 | http://vimeo.com/15205677
14 |
15 | Microsoft Code Gallery:
16 | http://code.msdn.microsoft.com/Social-Stream-solution-b5f5b653
--------------------------------------------------------------------------------
/SocialStream/Controls/BackgroundImage.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/XAMLConverter/HtmlTokenType.cs:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 | //
3 | // File: HtmlTokenType.cs
4 | //
5 | // Copyright (C) Microsoft Corporation. All rights reserved.
6 | //
7 | // Description: Definition of token types supported by HtmlLexicalAnalyzer
8 | //
9 | //---------------------------------------------------------------------------
10 |
11 | namespace HTMLConverter
12 | {
13 | ///
14 | /// types of lexical tokens for html-to-xaml converter
15 | ///
16 | internal enum HtmlTokenType
17 | {
18 | OpeningTagStart,
19 | ClosingTagStart,
20 | TagEnd,
21 | EmptyTagEnd,
22 | EqualSign,
23 | Name,
24 | Atom, // any attribute value not in quotes
25 | Text, //text content when accepting text
26 | Comment,
27 | EOF,
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/FeedProcessor/Enums/BlockReason.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace FeedProcessor.Enums
3 | {
4 | ///
5 | /// Reasons an item can be blocked from the feed.
6 | ///
7 | public enum BlockReason
8 | {
9 | ///
10 | /// The item is not blocked.
11 | ///
12 | None,
13 |
14 | ///
15 | /// The item is blocked due to profanity.
16 | ///
17 | Profanity,
18 |
19 | ///
20 | /// The item is blocked due to a negative keyword match.
21 | ///
22 | Keyword,
23 |
24 | ///
25 | /// The item is blocked due to a negative author match.
26 | ///
27 | Author,
28 |
29 | ///
30 | /// The item is blocked due to a negative URI match.
31 | ///
32 | Uri
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/FeedProcessor/SourceStatusUpdatedEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace FeedProcessor
7 | {
8 | ///
9 | /// The EventArgs object passed along with the Processor.SourceStatusUpdated event.
10 | ///
11 | internal class SourceStatusUpdatedEventArgs : EventArgs
12 | {
13 | ///
14 | /// Whether or not the source is up.
15 | ///
16 | internal readonly bool IsSourceUp;
17 |
18 | ///
19 | /// Initializes a new instance of the class.
20 | ///
21 | /// if set to true, the source is active.
22 | internal SourceStatusUpdatedEventArgs(bool isSourceUp)
23 | {
24 | IsSourceUp = isSourceUp;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/VO/BindableStringVO.cs:
--------------------------------------------------------------------------------
1 | using SocialStream.Helpers;
2 |
3 | namespace SocialStream.ConfigTool.VO
4 | {
5 | ///
6 | /// Enables change events for a single string field
7 | ///
8 | public class BindableStringVO : BindableBase
9 | {
10 | ///
11 | /// Backing store for StringValue.
12 | ///
13 | private string _StringValue = string.Empty;
14 |
15 | ///
16 | /// Gets or sets the StringValue.
17 | ///
18 | /// The query.
19 | public string StringValue
20 | {
21 | get
22 | {
23 | return _StringValue;
24 | }
25 |
26 | set
27 | {
28 | _StringValue = value;
29 | NotifyPropertyChanged("StringValue");
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/SocialStream/Controls/RiverItemVisibilityInfo.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace SocialStream.Controls
3 | {
4 | ///
5 | /// Indicates whether an item should be visible, and whether or not it's in the looping part of the river. The looping part is the
6 | /// portion of the screen which is past the last column of the GridLayout.
7 | ///
8 | internal struct RiverItemVisibilityInfo
9 | {
10 | ///
11 | /// Gets or sets a value indicating whether this instance is visible.
12 | ///
13 | ///
14 | /// true if this instance is visible; otherwise, false.
15 | ///
16 | public bool IsVisible { get; set; }
17 |
18 | ///
19 | /// Gets or sets a value indicating whether this instance is looping.
20 | ///
21 | ///
22 | /// true if this instance is looping; otherwise, false.
23 | ///
24 | public bool IsLooping { get; set; }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 5
12 |
13 |
14 | 10
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Command/SetBackgroundImagePathCommand.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Surface.Presentation;
2 | using SocialStream.ConfigTool.Model;
3 |
4 | namespace SocialStream.ConfigTool.Command
5 | {
6 | ///
7 | /// Called to set the path of one of the background images.
8 | ///
9 | internal static class SetBackgroundImagePathCommand
10 | {
11 | ///
12 | /// Sets the path of one of the background images.
13 | ///
14 | /// The orientation.
15 | /// The path to the image file.
16 | internal static void Execute(Tilt orientation, string path)
17 | {
18 | if (orientation == Tilt.Vertical)
19 | {
20 | AppState.Instance.VerticalBackgroundPath = path;
21 | }
22 | else if (orientation == Tilt.Horizontal)
23 | {
24 | AppState.Instance.HorizontalBackgroundPath = path;
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/SocialStream.ConfigTool/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // -------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation 2011. All rights reserved.
4 | //
5 | // -------------------------------------------------------------
6 |
7 | using System.Reflection;
8 | using System.Runtime.InteropServices;
9 | using System.Windows;
10 |
11 | [assembly: AssemblyTitle("Social Stream for Microsoft® Surface® Configuration Tool")]
12 | [assembly: AssemblyDescription("")]
13 | [assembly: AssemblyConfiguration("")]
14 | [assembly: AssemblyCompany("Microsoft")]
15 | [assembly: AssemblyProduct("Social Stream for Microsoft® Surface® Configuration Tool")]
16 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
17 | [assembly: AssemblyTrademark("")]
18 | [assembly: AssemblyCulture("")]
19 | [assembly: ComVisible(false)]
20 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
21 | [assembly: AssemblyVersion("2.0.624.0")]
22 | [assembly: AssemblyFileVersion("2.0.624.0")]
--------------------------------------------------------------------------------
/SocialStream/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 |
4 | namespace SocialStream
5 | {
6 | ///
7 | /// Native methods.
8 | ///
9 | internal static class NativeMethods
10 | {
11 | ///
12 | /// The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
13 | ///
14 | /// A handle to a logical pen, brush, font, bitmap, region, or palette.
15 | /// If the function succeeds, the return value is nonzero. If the specified handle is not valid or is currently selected into a DC, the return value is zero.
16 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Interoperability", "CA1414:MarkBooleanPInvokeArgumentsWithMarshalAs", Justification = "Adding this attribute causes an error."), DllImport("gdi32.dll")]
17 | internal static extern bool DeleteObject(IntPtr hObject);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/FeedProcessor/Net/AsyncWebResultEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Net;
3 |
4 | namespace FeedProcessor.Net
5 | {
6 | ///
7 | /// The EventArgs object passed in the AsyncWebRequest.Result event.
8 | ///
9 | internal class AsyncWebResultEventArgs : EventArgs
10 | {
11 | ///
12 | /// The response from the web service.
13 | ///
14 | internal readonly string Response;
15 |
16 | ///
17 | /// The status code from the web service.
18 | ///
19 | internal readonly HttpStatusCode Status;
20 |
21 | ///
22 | /// Initializes a new instance of the class.
23 | ///
24 | /// The response from the web service.
25 | /// The status code from the web service.
26 | internal AsyncWebResultEventArgs(string response, HttpStatusCode status)
27 | {
28 | Response = response;
29 | Status = status;
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/SocialStream/Controls/AdminIndicatorLight.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/FeedProcessor/CachePurgeEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.ObjectModel;
3 |
4 | namespace FeedProcessor
5 | {
6 | ///
7 | /// The EventArgs object passed along with the Processor.CachePurged event.
8 | ///
9 | public class CachePurgeEventArgs : EventArgs
10 | {
11 | ///
12 | /// Backing store for ValidData
13 | ///
14 | private readonly ReadOnlyCollection