Example #1
0
        public LoginPage()
        {
            InitializeComponent();
            var connectionString = ConfigurationManager.ConnectionStrings["SQLConnection"].ToString();

            _service = ADSSingleton.GetInstance(connectionString);
        }
Example #2
0
        public RegistarPage()
        {
            InitializeComponent();
            _contraseƱa = textBox2.Text;
            _correo     = textBox1.Text;
            var connectionString = ConfigurationManager.ConnectionStrings["SQLConnection"].ToString();

            _service = ADSSingleton.GetInstance(connectionString);
        }
Example #3
0
        public PaginaDeInicio()
        {
            InitializeComponent();
            var connectionString = ConfigurationManager.ConnectionStrings["SQLConnection"].ToString();

            _service                 = ADSSingleton.GetInstance(connectionString);
            ciudades                 = new List <Lista>();
            ciudadesbuscadas         = new List <RootObject>();
            dataGridView1.DataSource = new BindingSource(ciudadesbuscadas, null);
            dataGridView1.DataSource = typeof(List <RootObject>);
            dataGridView1.DataSource = ciudadesbuscadas;
            dataGridView2.DataSource = new BindingSource(ciudades, null);
            dataGridView2.DataSource = typeof(List <Lista>);
            dataGridView2.DataSource = ciudades;
        }
Example #4
0
 public ClimaService(string connectionString)
 {
     _dataService = ADSSingleton.GetInstance(connectionString);
 }