public MainPage() { this.InitializeComponent(); var dbPath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "test.db"); NuGetTestClass.RunTests(dbPath); }
// Constructor public MainPage() { InitializeComponent(); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); var dbPath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "test.db"); NuGetTestClass.RunTests(dbPath); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow(UIScreen.MainScreen.Bounds); viewController = new MyViewController(); window.RootViewController = viewController; window.MakeKeyAndVisible(); var conn = new SqliteConnection(); // we need a reference in order to stop the linker var dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "test.db"); NuGetTestClass.RunTests(dbPath); return(true); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button button = FindViewById <Button>(Resource.Id.MyButton); button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); }; var dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "test.db"); NuGetTestClass.RunTests(dbPath); }
public MainPage() { InitializeComponent(); NuGetTestClass.RunTests("test.db"); }
static void Main(string[] args) { var dbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "test.db"); NuGetTestClass.RunTests(dbPath); }