Esempio n. 1
0
 public static void Main(string[] args)
 {
     Application.Init ();
     MainWindow win = new MainWindow ();
     win.Show ();
     Application.Run ();
 }
Esempio n. 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 ();
        }
Esempio n. 3
0
File: Main.cs Progetto: javidam/Ad
        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 ();
        }
Esempio n. 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();
        }
Esempio n. 5
0
File: Main.cs Progetto: ruben206/ad
        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 ();
        }
Esempio n. 6
0
File: Main.cs Progetto: nerea123/ad
        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 ();
        }
Esempio n. 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 ();
        }