Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Refactor + PrePerPlatformGui
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Król authored and Wojciech Król committed Nov 16, 2014
1 parent dc06cb4 commit a7c7cac
Show file tree
Hide file tree
Showing 48 changed files with 2,632 additions and 0 deletions.
Binary file removed ._PiggyLogo_128.png
Binary file not shown.
Binary file removed ._PiggyLogo_64.png
Binary file not shown.
Binary file removed ._PiggySync
Binary file not shown.
Binary file added PiggyLogo_1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions PiggySync/PclTest/MyClass.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace PclTest
{
public class MyClass
{
public MyClass ()
{
}
}
}

38 changes: 38 additions & 0 deletions PiggySync/PclTest/PclTest.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectGuid>{AC302AFA-BA69-44B4-8A2E-7B701685D81A}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>PclTest</RootNamespace>
<AssemblyName>PclTest</AssemblyName>
<TargetFrameworkProfile>Profile78</TargetFrameworkProfile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<ReleaseVersion>0.5</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Compile Include="MyClass.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
</Project>
27 changes: 27 additions & 0 deletions PiggySync/PclTest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System.Reflection;
using System.Runtime.CompilerServices;

// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.

[assembly: AssemblyTitle ("PclTest")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyright ("wojciechkrol")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]

// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion ("1.0.*")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]

6 changes: 6 additions & 0 deletions PiggySync/PiggySync.AndroidApp/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="PiggySync.AndroidApp">
<uses-sdk />
<application android:label="PiggySync.AndroidApp">
</application>
</manifest>
23 changes: 23 additions & 0 deletions PiggySync/PiggySync.Core/IHostWather.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using PiggySyncWin.WinUI.Infrastructure;
using PiggySyncWin.WinUI.Infrastructure.Concrete;
using PiggySyncWin.WinUI.Models;
using PiggySyncWin.WinUI.Models.Concrete;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using PiggySyncWin.Domain;

namespace PiggySyncWin.Core
{
public interface IHostWather
{
void RefreshHostsList (IEnumerable<PiggyRemoteHost> hosts);
}


}
14 changes: 14 additions & 0 deletions PiggySync/PiggySync.Domain/MergePattern.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.IO;
using PiggySyncWin.Domain;
using System.Linq;
using System.Diagnostics;

namespace PiggySync.Domain
{
public class MergePattern
{
}

}

16 changes: 16 additions & 0 deletions PiggySync/PiggySync.Domain/TextFile.cs
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 PiggySyncWin.Domain
{
public class TextFile
{
public string Extension { get; set; }

public string TemplatePath { get; set; }
}

}
48 changes: 48 additions & 0 deletions PiggySync/PiggySync.IosApp/AppDelegate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Linq;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace IosGui
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
// class-level declarations

public override UIWindow Window
{
get;
set;
}

// This method is invoked when the application is about to move from active to inactive state.
// OpenGL applications should use this method to pause.
public override void OnResignActivation (UIApplication application)
{
}

// This method should be used to release shared resources and it should store the application state.
// If your application supports background exection this method is called instead of WillTerminate
// when the user quits.
public override void DidEnterBackground (UIApplication application)
{
}

// This method is called as part of the transiton from background to active state.
public override void WillEnterForeground (UIApplication application)
{
}

// This method is called when the application is about to terminate. Save data, if needed.
public override void WillTerminate (UIApplication application)
{
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This file has been autogenerated from a class added in the UI designer.

using System;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace IosGui
{
public partial class DeviacesTableVievControllerTableViewController : UITableViewController
{
public DeviacesTableVievControllerTableViewController (IntPtr handle) : base (handle)
{
}
}
}

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

6 changes: 6 additions & 0 deletions PiggySync/PiggySync.IosApp/Entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
</dict>
</plist>
16 changes: 16 additions & 0 deletions PiggySync/PiggySync.IosApp/FilesViewController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This file has been autogenerated from a class added in the UI designer.

using System;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace IosGui
{
public partial class FilesViewController : UIViewController
{
public FilesViewController (IntPtr handle) : base (handle)
{
}
}
}
21 changes: 21 additions & 0 deletions PiggySync/PiggySync.IosApp/FilesViewController.designer.cs

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

65 changes: 65 additions & 0 deletions PiggySync/PiggySync.IosApp/FirstViewController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
using System;
using System.Drawing;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace IosGui
{
public partial class FirstViewController : UIViewController
{
static bool UserInterfaceIdiomIsPhone
{
get { return UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone; }
}

public FirstViewController (IntPtr handle) : base (handle)
{
this.Title = NSBundle.MainBundle.LocalizedString ("First", "First");
this.TabBarItem.Image = UIImage.FromBundle ("first");
}

public override void DidReceiveMemoryWarning ()
{
// Releases the view if it doesn't have a superview.
base.DidReceiveMemoryWarning ();

// Release any cached data, images, etc that aren't in use.
}

#region View lifecycle

public override void ViewDidLoad ()
{
base.ViewDidLoad ();
StatusImageButton.TouchUpInside += (object sender, EventArgs e) =>
{
this.PresentViewController (new LogTableViewController(),true,null);
};
// Perform any additional setup after loading the view, typically from a nib.
}

public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
}

public override void ViewDidAppear (bool animated)
{
base.ViewDidAppear (animated);
}

public override void ViewWillDisappear (bool animated)
{
base.ViewWillDisappear (animated);
}

public override void ViewDidDisappear (bool animated)
{
base.ViewDidDisappear (animated);
}

#endregion
}
}

Loading

0 comments on commit a7c7cac

Please sign in to comment.