internal static int GetImageIndex(TreeIconConstants image) { return((int)ImageMapper[image]); }
internal static int GetImageIndex(TreeIconConstants image) { return (int)ImageMapper[image]; }
public static Icon GetIcon(TreeIconConstants image) { Icon retval = null; switch (image) { case TreeIconConstants.Attribute: retval = GetIcon("Attribute.ico"); break; case TreeIconConstants.Column: retval = GetIcon("Column.ico"); break; case TreeIconConstants.ColumnInherit: retval = GetIcon("ColumnInherit.ico"); break; case TreeIconConstants.ColumnPrimaryKey: retval = GetIcon("ColumnPrimaryKey.ico"); break; case TreeIconConstants.ColumnForeignKey: retval = GetIcon("AttributeForeignKey.ico"); break; case TreeIconConstants.Database: retval = GetIcon("Database.ico"); break; case TreeIconConstants.Domain: retval = GetIcon("Domain.ico"); break; case TreeIconConstants.Table: retval = GetIcon("Table.ico"); break; case TreeIconConstants.TableType: retval = GetIcon("TableType.ico"); break; case TreeIconConstants.Error: retval = GetIcon("Error.ico"); break; case TreeIconConstants.Relationship: retval = GetIcon("Relationship.ico"); break; case TreeIconConstants.Entity: retval = GetIcon("Table.ico"); break; case TreeIconConstants.TableDerived: retval = GetIcon("TableDerived.ico"); break; case TreeIconConstants.TableAssociative: retval = GetIcon("TableAssociative.ico"); break; case TreeIconConstants.Tables: retval = GetIcon("Tables.ico"); break; case TreeIconConstants.FolderClose: retval = GetIcon("FolderClose.ico"); break; case TreeIconConstants.FolderOpen: retval = GetIcon("FolderOpen.ico"); break; case TreeIconConstants.UI: retval = GetIcon("UI.ico"); break; case TreeIconConstants.Up: retval = GetIcon("Up.ico"); break; case TreeIconConstants.Down: retval = GetIcon("Down.ico"); break; case TreeIconConstants.Package: retval = GetIcon("Package.ico"); break; case TreeIconConstants.Packages: retval = GetIcon("Packages.ico"); break; case TreeIconConstants.CustomView: retval = GetIcon("CustomView.ico"); break; case TreeIconConstants.CustomViews: retval = GetIcon("CustomViews.ico"); break; case TreeIconConstants.CustomViewColumn: retval = GetIcon("CustomViewColumn.ico"); break; case TreeIconConstants.CustomRetrieveRule: retval = GetIcon("CustomRetrieveRule.ico"); break; case TreeIconConstants.CustomRetrieveRules: retval = GetIcon("CustomRetrieveRules.ico"); break; case TreeIconConstants.TableNonGen: retval = GetIcon("TableNonGen.ico"); break; default: throw new Exception("Image not found!"); } return(retval); }
public static Icon GetIcon(TreeIconConstants image) { Icon retval = null; switch (image) { case TreeIconConstants.Attribute: retval = GetIcon("Attribute.ico"); break; case TreeIconConstants.Column: retval = GetIcon("Column.ico"); break; case TreeIconConstants.ColumnInherit: retval = GetIcon("ColumnInherit.ico"); break; case TreeIconConstants.ColumnPrimaryKey: retval = GetIcon("ColumnPrimaryKey.ico"); break; case TreeIconConstants.ColumnForeignKey: retval = GetIcon("AttributeForeignKey.ico"); break; case TreeIconConstants.Database: retval = GetIcon("Database.ico"); break; case TreeIconConstants.Domain: retval = GetIcon("Domain.ico"); break; case TreeIconConstants.Table: retval = GetIcon("Table.ico"); break; case TreeIconConstants.TableType: retval = GetIcon("TableType.ico"); break; case TreeIconConstants.Error: retval = GetIcon("Error.ico"); break; case TreeIconConstants.Relationship: retval = GetIcon("Relationship.ico"); break; case TreeIconConstants.Entity: retval = GetIcon("Table.ico"); break; case TreeIconConstants.TableDerived: retval = GetIcon("TableDerived.ico"); break; case TreeIconConstants.TableAssociative: retval = GetIcon("TableAssociative.ico"); break; case TreeIconConstants.Tables: retval = GetIcon("Tables.ico"); break; case TreeIconConstants.FolderClose: retval = GetIcon("FolderClose.ico"); break; case TreeIconConstants.FolderOpen: retval = GetIcon("FolderOpen.ico"); break; case TreeIconConstants.UI: retval = GetIcon("UI.ico"); break; case TreeIconConstants.Up: retval = GetIcon("Up.ico"); break; case TreeIconConstants.Down: retval = GetIcon("Down.ico"); break; case TreeIconConstants.Package: retval = GetIcon("Package.ico"); break; case TreeIconConstants.Packages: retval = GetIcon("Packages.ico"); break; case TreeIconConstants.CustomView: retval = GetIcon("CustomView.ico"); break; case TreeIconConstants.CustomViews: retval = GetIcon("CustomViews.ico"); break; case TreeIconConstants.CustomViewColumn: retval = GetIcon("CustomViewColumn.ico"); break; case TreeIconConstants.CustomRetrieveRule: retval = GetIcon("CustomRetrieveRule.ico"); break; case TreeIconConstants.CustomRetrieveRules: retval = GetIcon("CustomRetrieveRules.ico"); break; case TreeIconConstants.Parameter: retval = GetIcon("Parameter.ico"); break; case TreeIconConstants.CustomStoredProcedure: retval = GetIcon("CustomStoredProcedure.ico"); break; case TreeIconConstants.CustomStoredProcedures: retval = GetIcon("CustomStoredProcedures.ico"); break; case TreeIconConstants.CustomStoredProcedureColumn: retval = GetIcon("CustomStoredProcedureColumn.ico"); break; case TreeIconConstants.TableNonGen: retval = GetIcon("TableNonGen.ico"); break; default: throw new Exception("Image not found!"); } return retval; }