public void ShowDatabases() { BizDatabase bizDatabase = new BizDatabase(); var DatabaseList = bizDatabase.GetDatabases(); dtgItems.ItemsSource = DatabaseList; }
private void SetDatabaseLookup() { bool firstTime = false; if (lokDatabase.SelectedValueMember == null) { firstTime = true; lokDatabase.SelectedValueMember = "ID"; lokDatabase.DisplayMember = "Title"; ////lokDatabase.EditItemClicked += LokDatabase_NewItemClicked; lokDatabase.NewItemEnabled = true; lokDatabase.EditItemEnabled = true; lokDatabase.EditItemClicked += LokDatabase_EditItemClicked; } // قابل دسترسی کاربر // var databases = bizDatabase.GetDatabases(); lokDatabase.ItemsSource = databases; if (firstTime && Properties.Settings.Default.LastDatabaseID != 0) { lokDatabase.SelectedValue = Properties.Settings.Default.LastDatabaseID; } }
public frmSecurityObjectTree() { InitializeComponent(); var databases = bizDatabase.GetDatabases(); ShowDatabaseObjects(databases.Select(x => x.ID).ToList()); //bizDatabaseToObject.IgnoreRelationshipColumns = true; }
public frmEntityOrganizationRoleSecurity() { InitializeComponent(); ucObjectTree.ObjectRightClick += UcObjectTree_ObjectRightClick; var databases = bizDatabase.GetDatabases(); ucObjectTree.ShowDatabaseObjects(databases.Select(x => x.ID).ToList()); }
public frmPermission() { InitializeComponent(); ucObjectTree.ObjectSelected += ucObjectList_ObjectSelected; ucRoleList.RoleOrRoleGroupSelected += UcRoleList_RoleOrRoleGroupSelected; //درست شود var databases = bizDatabase.GetDatabases(); ucObjectTree.ShowDatabaseObjects(databases.Select(x => x.ID).ToList()); }
private void SetDatabaseLookup() { BizDatabase bizDatabase = new BizDatabase(); lokDatabase.SelectedValueMember = "ID"; lokDatabase.DisplayMember = "Title"; lokDatabase.NewItemEnabled = false; lokDatabase.EditItemEnabled = false; // قابل دسترسی کاربر // var databases = bizDatabase.GetDatabases(); lokDatabase.ItemsSource = databases; }