void Settings_SettingsLoaded(object sender, System.Configuration.SettingsLoadedEventArgs e) { DirectorBase db = new DirectorBase(cte.lib); this["jcproshopConnectionString"] = db.GetConnection().ConnectionString; this["fvConnectionString"] = db.GetConnection().ConnectionString; }
void Settings_SettingsLoaded(object sender, System.Configuration.SettingsLoadedEventArgs e) { DirectorBase db = new DirectorBase(cte.lib); this["lwconnection"] = db.GetConnection().ConnectionString; this["isc_alumniConnectionString"] = db.GetConnection().ConnectionString; this["ghConnectionString"] = db.GetConnection().ConnectionString; }
void Settings_SettingsLoaded(object sender, System.Configuration.SettingsLoadedEventArgs e) { DirectorBase db = new DirectorBase(cte.lib); this["GeneralConnectionString"] = db.GetConnection().ConnectionString; //SqlConnection connection = (SqlConnection)db.GetConnection(); //this["GeneralConnectionString"] = connection.ConnectionString; }
private void DirectionEventsOnOnInitializeDirection(IAnalyticsTracker analytics, IDirector director) { this.director = director as DirectorBase; if (this.director == null) { Debug.LogWarning("<color=yellow>[GenericUI] You cannot use this type of IDirector with Generic UI.</color>"); return; } this.analytics = analytics; OnInitializeUI(); }
public IEnumerable <DirectorBase> getListOfDirectorBase() { var directors = dc.Directors.OrderBy(d => d.Name); if (directors == null) { return(null); } List <DirectorBase> dls = new List <DirectorBase>(); foreach (var item in directors) { DirectorBase db = new DirectorBase(); db.DirectorId = item.Id; db.Name = item.Name; dls.Add(db); } return(dls); }