public static void Main(string[] args) { Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); }
public static void Main(string[] args) { Application.Init (); App.Instance.DbConnection = null;//TODO asignar objeto conexion MainWindow win = new MainWindow (); win.Show (); Application.Run (); }
public static void Main(string[] args) { App.Instance.DbConnection = new MySqlConnection ("Server = localhost; Database = dbprueba;User Id = root; Password = sistemas"); Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); }
public static void Main(string[] args) { string connection = "Server=localhost;Database=dbrepaso;User Id=root;Password=sistemas"; App.Instance.DbConnection = new MySqlConnection(connection); Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); App.Instance.DbConnection.Close(); }
public static void Main(string[] args) { int i = (int)Convert.ChangeType("123", typeof(int)); Console.WriteLine ("i={0}", i); return; App.Instance.DbConnection = new MySqlConnection("Server=localhost;Database=dbprueba;User Id=root;Password=sistemas"); Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); }
public static void Main(string[] args) { Application.Init (); string connectionString="Server=localhost;Database=dbprueba;" + "User Id=root;Password=sistemas"; MySqlConnection mySqlConnection = new MySqlConnection(connectionString); App.Instance.DbConnection = mySqlConnection;//TODO asignar objeto conexion MainWindow win = new MainWindow (); win.Show (); Application.Run (); }
public static void Main(string[] args) { string connectionString="Server=localhost;Database=dbprueba;" + "User Id=root;Password=sistemas"; MySqlConnection mySqlConnection = new MySqlConnection(connectionString); Categoria cat = new Categoria (); cat.Nombre = DateTime.Now.ToString (); Categoria.Save (cat); App.Instance.DbConnection=mySqlConnection; Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); }