Пример #1
0
        public override void SaveConnection()
        {
            MsSqlStoredConnection conn = (MsSqlStoredConnection)m_conn;

            conn.Authentization = (cbxAuthentization.SelectedIndex == 1) ? MsSqlAuth.SQL : MsSqlAuth.SSPI;
            conn.DataSource     = tbxDataSource.Text;
            conn.Login          = tbxLogin.Text;
            conn.Password       = tbxPassword.Text;
        }
Пример #2
0
 public MsSqlConnFrame(MsSqlStoredConnection conn)
     : base(conn)
 {
     InitializeComponent();
     tbxDataSource.Text = conn.DataSource;
     cbxAuthentization.SelectedIndex = (conn.Authentization == MsSqlAuth.SQL) ? 1 : 0;
     tbxPassword.Text = conn.Password;
     tbxLogin.Text    = conn.Login;
 }