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(); }
private void Button_AddTokenToFile(object sender, RoutedEventArgs e) { SqlEEViewModel vm = ((SqlEEViewModel)DataContext); vm.DT.AddTokenToFileHandler((string)((Button)sender).Tag); }
public SqlEEViewModel_TT(SqlEEViewModel vm) { this.vm = vm; settings = vm.SqlEESettings; }