Beispiel #1
0
 public static void Main(string[] args)
 {
     Application.Init ();
     MainWindow win = new MainWindow ();
     win.Show ();
     Application.Run ();
 }
Beispiel #2
0
        public static void Main(string[] args)
        {
            Application.Init ();

            App.Instance.DbConnection = null;//TODO asignar objeto conexion

            MainWindow win = new MainWindow ();
            win.Show ();
            Application.Run ();
        }
Beispiel #3
0
        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 ();
        }
Beispiel #4
0
        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();
        }
Beispiel #5
0
        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 ();
        }
Beispiel #6
0
        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 ();
        }
Beispiel #7
0
        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 ();
        }