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

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

            _service = ADSSingleton.GetInstance(connectionString);
        }
예제 #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;
        }
예제 #4
0
 public ClimaService(string connectionString)
 {
     _dataService = ADSSingleton.GetInstance(connectionString);
 }