Esempio n. 1
0
        private void _connect_Click(object sender, EventArgs e)
        {
            try
            {
                _hostAccess = new HostFileAccess(_connectionString.Text);

                EnableOperations(true);
                _disconnect.Enabled = true;
                _connect.Enabled    = false;
            }
            catch (Exception ex)
            {
                DisplayError(ex.ToString());
            }
        }
Esempio n. 2
0
        private void _disconnect_Click(object sender, EventArgs e)
        {
            try
            {
                _hostAccess.Dispose();
                _hostAccess = null;

                EnableOperations(false);
                _disconnect.Enabled = false;
                _connect.Enabled    = true;
            }
            catch (Exception ex)
            {
                DisplayError(ex.ToString());
            }
        }