Skip to content

Commit

Permalink
[TaskyL10nStoryboard] update to Unified
Browse files Browse the repository at this point in the history
  • Loading branch information
conceptdev committed Apr 16, 2015
1 parent 22c1cd3 commit 5756384
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 26 deletions.
4 changes: 2 additions & 2 deletions TaskyL10nStoryboard/AppDelegate.cs
Expand Up @@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Linq;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Foundation;
using UIKit;

namespace StoryboardTables
{
Expand Down
4 changes: 2 additions & 2 deletions TaskyL10nStoryboard/Main.cs
Expand Up @@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Linq;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Foundation;
using UIKit;

namespace StoryboardTables
{
Expand Down
8 changes: 4 additions & 4 deletions TaskyL10nStoryboard/RootTableSource.cs
@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using System.IO;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Foundation;
using UIKit;

namespace StoryboardTables {
public class RootTableSource : UITableViewSource {
Expand All @@ -18,11 +18,11 @@ public RootTableSource (Task[] items)
tableItems = items;
}

public override int RowsInSection (UITableView tableview, int section)
public override nint RowsInSection (UITableView tableview, nint section)
{
return tableItems.Length;
}
public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
{
// in a Storyboard, Dequeue will ALWAYS return a cell,
UITableViewCell cell = tableView.DequeueReusableCell (cellIdentifier);
Expand Down
10 changes: 5 additions & 5 deletions TaskyL10nStoryboard/RootViewController.cs
@@ -1,8 +1,8 @@
using System;
using System.Drawing;
using CoreGraphics;
using System.Collections.Generic;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Foundation;
using UIKit;

namespace StoryboardTables
{
Expand Down Expand Up @@ -67,13 +67,13 @@ public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender)
Console.WriteLine("Save "+task.Name);
var oldTask = tasks.Find(t => t.Id == task.Id);
oldTask = task;
NavigationController.PopViewControllerAnimated(true);
NavigationController.PopViewController(true);
}
public void DeleteTask (Task task) {
Console.WriteLine("Delete "+task.Name);
var oldTask = tasks.Find(t => t.Id == task.Id);
tasks.Remove (oldTask);
NavigationController.PopViewControllerAnimated(true);
NavigationController.PopViewController(true);
}


Expand Down
4 changes: 2 additions & 2 deletions TaskyL10nStoryboard/RootViewController.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions TaskyL10nStoryboard/TaskDetailViewController.cs
@@ -1,8 +1,8 @@
// This file has been autogenerated from parsing an Objective-C header file added in Xcode.

using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Foundation;
using UIKit;

namespace StoryboardTables
{
Expand Down
12 changes: 6 additions & 6 deletions TaskyL10nStoryboard/TaskDetailViewController.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions TaskyL10nStoryboard/TaskyL10nStoryboard.csproj
Expand Up @@ -6,9 +6,11 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{08A1E777-C427-42A1-9DB4-F7C9105E389B}</ProjectGuid>
<ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<RootNamespace>StoryboardTables</RootNamespace>
<TargetFrameworkIdentifier>Xamarin.iOS</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
<DebugSymbols>True</DebugSymbols>
Expand Down Expand Up @@ -53,6 +55,7 @@
<AssemblyName>StoryboardTables</AssemblyName>
<IpaPackageName>
</IpaPackageName>
<MtouchArch>ARMv7</MtouchArch>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>none</DebugType>
Expand All @@ -63,12 +66,13 @@
<ConsolePause>False</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<AssemblyName>StoryboardTables</AssemblyName>
<MtouchArch>ARMv7, ARM64</MtouchArch>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="monotouch" />
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
Expand Down Expand Up @@ -102,5 +106,5 @@
<BundleResource Include="Resources\ja.lproj\Localizable.strings" />
<BundleResource Include="Resources\ja.lproj\MainStoryboard.strings" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
</Project>

0 comments on commit 5756384

Please sign in to comment.