-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fred Hallock
committed
May 3, 2016
1 parent
8b24fae
commit 26769c3
Showing
48 changed files
with
4,633 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | ||
</startup> | ||
</configuration> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Application x:Class="IronKingdomsUnleashedCharacterSheet.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:IronKingdomsUnleashedCharacterSheet" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
|
||
</Application.Resources> | ||
</Application> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
|
||
namespace IronKingdomsUnleashedCharacterSheet | ||
{ | ||
/// <summary> | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
{ | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.ComponentModel; | ||
|
||
namespace IronKingdomsUnleashedCharacterSheet.BaseClasses | ||
{ | ||
public class PropertyChangedNotifier : INotifyPropertyChanged | ||
{ | ||
public event PropertyChangedEventHandler PropertyChanged; | ||
|
||
protected void NotifyPropertyChanged(string property) | ||
{ | ||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property)); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System.IO; | ||
using System.Windows.Media.Imaging; | ||
|
||
namespace IronKingdomsUnleashedCharacterSheet.DataHelpers | ||
{ | ||
public static class BitmapImageExtensions | ||
{ | ||
public static BitmapImage GetBitmapImage(this byte[] data) | ||
{ | ||
if (data == null) | ||
return null; | ||
using (var ms = new MemoryStream()) | ||
{ | ||
ms.Write(data, 0, data.Length); | ||
ms.Seek(0, SeekOrigin.Begin); | ||
var img = new BitmapImage(); | ||
img.BeginInit(); | ||
img.StreamSource = ms; | ||
img.CacheOption = BitmapCacheOption.OnLoad; | ||
img.EndInit(); | ||
img.Freeze(); | ||
return img; | ||
} | ||
} | ||
|
||
public static byte[] GetBytes(this BitmapImage img) | ||
{ | ||
if (img == null) | ||
return null; | ||
var encoder = new PngBitmapEncoder(); | ||
encoder.Frames.Add(BitmapFrame.Create(img)); | ||
using (MemoryStream ms = new MemoryStream()) | ||
{ | ||
encoder.Save(ms); | ||
return ms.ToArray(); | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace IronKingdomsUnleashedCharacterSheet.Enums | ||
{ | ||
public enum Archetype | ||
{ | ||
Cunning, | ||
Gifted, | ||
Mighty, | ||
Skilled | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace IronKingdomsUnleashedCharacterSheet.Enums | ||
{ | ||
public enum Race | ||
{ | ||
Gatorman, Tharn, Human, Trollkin, Farrow, Pyg, Nyss, Bog_Trog | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace IronKingdomsUnleashedCharacterSheet.Enums | ||
{ | ||
public enum Sex | ||
{ | ||
Male, | ||
Female | ||
} | ||
} |
Oops, something went wrong.