Example #1
0
        private void init()
        {
            c = new ConnectionUtils();
            LoginDAO ld = new LoginDAO();

            if (!c.checkLoginTable())
            {
                ld.createTableLogin("admin", "admin");
            }
        }
Example #2
0
 public void initDbFile()
 {
     c = new ConnectionUtils();
     if (!c.IsDBFileAvailable("sipernasa.db"))
     {
         if (c.CreateDBFile("sipernasa.db"))
         {
             System.Diagnostics.Process.Start(System.Windows.Application.ResourceAssembly.Location);
             System.Windows.Application.Current.Shutdown();
         }
     }
     else
     {
         if (!c.checkLoginTable())
         {
             if (c.createLoginInfo())
             {
                 Console.WriteLine("table pengguna telah dibuat bosku");
             }
         }
     }
 }