Example #1
0
 public static void Main(string[] args)
 {
     Application.Init ();
     MainWindow win = new MainWindow ();
     win.Show ();
     Application.Run ();
 }
Example #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 ();
        }
Example #3
0
File: Main.cs Project: 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 ();
        }
Example #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();
        }
Example #5
0
File: Main.cs Project: 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 ();
        }
Example #6
0
File: Main.cs Project: 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 ();
        }
Example #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 ();
        }