Exemplo n.º 1
0
 public SqlEEViewModel_DT(SqlEEViewModel vm)
 {
     this.vm  = vm;
     settings = vm.SqlEESettings;
     nsp      = new NameSpecParser();
     Result   = nsp.Convert(settings.Specification);
 }
        public SqlEEViewModel_CT(SqlEEViewModel vm)
        {
            this.vm      = vm;
            settings     = vm.SqlEESettings;
            logonMethods = new List <LogonMethod>()
            {
                new LogonMethod()
                {
                    Name = "SQL server authentication", Type = SqlEESettings.LogonType.SqlUser
                },
                new LogonMethod()
                {
                    Name = "Windows authentication", Type = SqlEESettings.LogonType.WindowsUser
                },
            };
            SelectedLogonMethod = logonMethods[0];

            Cultures = CultureInfo.GetCultures(CultureTypes.AllCultures).OrderBy(n => n.DisplayName).ToList();
        }
Exemplo n.º 3
0
        private void Button_AddTokenToFile(object sender, RoutedEventArgs e)
        {
            SqlEEViewModel vm = ((SqlEEViewModel)DataContext);

            vm.DT.AddTokenToFileHandler((string)((Button)sender).Tag);
        }
Exemplo n.º 4
0
 public SqlEEViewModel_TT(SqlEEViewModel vm)
 {
     this.vm  = vm;
     settings = vm.SqlEESettings;
 }