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 void BuildMenu () | |
{ | |
DAL.SetupDB(); | |
RootElement menu = new RootElement ("Simcoe Cabinets") | |
{ | |
new Section() | |
{ | |
new StringElement ("Orders", ShowOrdersForm), | |
new StringElement ("Settings",ShowSettings) |
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
private static UINavigationController _navigation; | |
private static object navLock = new object(); | |
public static UINavigationController navigation | |
{ | |
get{ | |
if(_navigation == null) | |
lock(navLock) | |
_navigation = new UINavigationController(); |
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
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
string intentString; | |
bool intentBool; | |
//if the activity is being resumed... | |
if (bundle != null) | |
{ |
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
# cat /var/etc/racoon.conf | |
# This file is automatically generated. Do not edit | |
path pre_shared_key "/var/etc/psk.txt"; | |
path certificate "/var/etc"; | |
listen | |
{ | |
adminsock "/var/db/racoon/racoon.sock" "root" "wheel" 0660; |
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; | |
using MonoMobile.Views; | |
using MonoTouch.UIKit; | |
using MonoTouch.Foundation; | |
using OBDIIEngineLibrary; | |
namespace ObdSync | |
{ | |
[Preserve(AllMembers = true)] | |
[Theme(typeof(NavbarTheme))] |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Views; |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Views; |
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 static string DeviceID (ContentResolver resolver) | |
{ | |
return Android.Provider.Settings.Secure.GetString(resolver, | |
Android.Provider.Settings.Secure.AndroidId); | |
} |
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 static string DeviceIp | |
{ | |
get | |
{ | |
Util.Defaults.Init(); | |
return Util.Defaults.StringForKey("deviceip"); | |
} | |
set |
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 void ShowCustomersForm(bool ShowAll) | |
{ | |
EditingDialog dvc = new EditingDialog(new RootElement("Customers"), true, Application.BackgroundImage){Autorotate = true}; | |
dvc.ViewAppearing += delegate { | |
LoadCustomers(dvc, ShowAll); | |
dvc.ReloadData(); | |
}; | |
dvc.NavigationItem.RightBarButtonItem = new UIBarButtonItem (UIBarButtonSystemItem.Add, delegate { |
NewerOlder