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
Edit MapMagicWindow.cs | |
Make the following method static, it doesn't reference internal class data, so it is ok. | |
private static Generator[] SmartCopyGenerators(Generator gen) | |
Then refactor the SaveGenerator method, extracting the file saving to a public static ExportToFile method | |
void SaveGenerator(Generator gen, Vector2 pos) | |
{ |
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 Paths | |
{ | |
/// <summary> | |
/// Apply Path.Combine(on path and list) | |
/// </summary> | |
/// <param name="path"></param> | |
/// <param name="list"></param> | |
/// <returns></returns> | |
public static string Combine(string path, params string[] list) | |
{ |
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
[DebuggerDisplay("{Title}, Desc({Description}), Link({Link})")] | |
public class Item | |
{ | |
public Item(XElement x) | |
{ | |
Title = x.Element("title").Value; | |
Description = x.Element("description").Value; | |
XElement link = x.Element("link"); | |
if(null != link) | |
Link = link.Value; |
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 MonoTouch.Foundation; | |
using MonoTouch.ObjCRuntime; | |
using MonoTouch.UIKit; | |
namespace iOSLib | |
{ | |
public static class ViewExtensions | |
{ | |
static Dictionary<UIView, Dictionary<UISwipeGestureRecognizerDirection, SwipeClass>> |
NewerOlder