コード例 #1
0
		static void Help3ActiveCatalogIdChanged(object sender, EventArgs e)
		{
			if (string.IsNullOrEmpty(config.ActiveCatalogId)) {
				config.ActiveCatalogId = (catalogs.Count > 0) ? catalogs[0].ShortName:string.Empty;
			}
			activeCatalog = (string.IsNullOrEmpty(config.ActiveCatalogId)) ? null:FindCatalogByItsShortName(config.ActiveCatalogId);
		}
コード例 #2
0
 static void Help3ActiveCatalogIdChanged(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(config.ActiveCatalogId))
     {
         config.ActiveCatalogId = (catalogs.Count > 0) ? catalogs[0].ShortName:string.Empty;
     }
     activeCatalog = (string.IsNullOrEmpty(config.ActiveCatalogId)) ? null:FindCatalogByItsShortName(config.ActiveCatalogId);
 }