Skip to content

Instantly share code, notes, and snippets.

View SuperYeti's full-sized avatar

Warren Moxley SuperYeti

View GitHub Profile
public void BuildMenu ()
{
DAL.SetupDB();
RootElement menu = new RootElement ("Simcoe Cabinets")
{
new Section()
{
new StringElement ("Orders", ShowOrdersForm),
new StringElement ("Settings",ShowSettings)
private static UINavigationController _navigation;
private static object navLock = new object();
public static UINavigationController navigation
{
get{
if(_navigation == null)
lock(navLock)
_navigation = new UINavigationController();
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
string intentString;
bool intentBool;
//if the activity is being resumed...
if (bundle != null)
{
# 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;
using System;
using MonoMobile.Views;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using OBDIIEngineLibrary;
namespace ObdSync
{
[Preserve(AllMembers = true)]
[Theme(typeof(NavbarTheme))]
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;
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;
public static string DeviceID (ContentResolver resolver)
{
return Android.Provider.Settings.Secure.GetString(resolver,
Android.Provider.Settings.Secure.AndroidId);
}
public static string DeviceIp
{
get
{
Util.Defaults.Init();
return Util.Defaults.StringForKey("deviceip");
}
set
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 {