public Group(QName name, Field[] fields, bool optional) : base(name, optional) { var expandedFields = new List<Field>(); var references = new List<StaticTemplateReference>(); for (int i = 0; i < fields.Length; i++) { if (fields[i] is StaticTemplateReference) { var currentTemplate = (StaticTemplateReference)fields[i]; Field[] referenceFields = currentTemplate.Template.Fields; for (int j = 1; j < referenceFields.Length; j++) expandedFields.Add(referenceFields[j]); references.Add(currentTemplate); } else { expandedFields.Add(fields[i]); } } this.fields = expandedFields.ToArray(); fieldDefinitions = fields; fieldIndexMap = ConstructFieldIndexMap(this.fields); fieldNameMap = ConstructFieldNameMap(this.fields); fieldIdMap = ConstructFieldIdMap(this.fields); introspectiveFieldMap = ConstructInstrospectiveFields(this.fields); usesPresenceMap_Renamed_Field = DeterminePresenceMapUsage(this.fields); staticTemplateReferences = references.ToArray(); }
static LiteralBool() { idMap_ = new System.Collections.Hashtable(); { LiteralBool literal = new LiteralBool("true"); object tempObject; tempObject = literal; idMap_["true"] = tempObject; System.Object generatedAux = tempObject; object tempObject2; tempObject2 = literal; idMap_["TRUE"] = tempObject2; System.Object generatedAux2 = tempObject2; object tempObject3; tempObject3 = literal; idMap_["True"] = tempObject3; System.Object generatedAux3 = tempObject3; literal = new LiteralBool("false"); object tempObject4; tempObject4 = literal; idMap_["false"] = tempObject4; System.Object generatedAux4 = tempObject4; object tempObject5; tempObject5 = literal; idMap_["FALSE"] = tempObject5; System.Object generatedAux5 = tempObject5; object tempObject6; tempObject6 = literal; idMap_["False"] = tempObject6; System.Object generatedAux6 = tempObject6; } }
public MockRAMDirectory(System.IO.FileInfo dir) : base(dir) { if (openFiles == null) { openFiles = new System.Collections.Hashtable(); } }
/// <summary> Ctor.</summary> /// <param name="selector">Selector. /// </param> /// <param name="root">Root expression of the parsed selector. /// </param> /// <param name="identifiers">Identifiers used by the selector. The key /// into the <tt>Map</tt> is name of the identifier and the value is an /// instance of <tt>Identifier</tt>. /// </param> private Selector(System.String selector, IExpression root, System.Collections.IDictionary identifiers) { selector_ = selector; root_ = root; //UPGRADE_ISSUE: Method 'java.util.Collections.unmodifiableMap' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javautilCollectionsunmodifiableMap_javautilMap"' identifiers_ = identifiers; }
public MockRAMDirectory() : base() { if (openFiles == null) { openFiles = new System.Collections.Hashtable(); } }
/// <summary> /// Returns a string representation of this IDictionary. /// </summary> /// <remarks> /// The string representation is a list of the collection's elements in the order /// they are returned by its IEnumerator, enclosed in curly brackets ("{}"). /// The separator is a comma followed by a space i.e. ", ". /// </remarks> /// <param name="dict">Dictionary whose string representation will be returned</param> /// <returns>A string representation of the specified dictionary or "null"</returns> public static string DictionaryToString(IDictionary dict) { StringBuilder sb = new StringBuilder(); if (dict != null) { sb.Append("{"); int i = 0; foreach (DictionaryEntry e in dict) { if (i > 0) { sb.Append(", "); } if (e.Value is IDictionary) sb.AppendFormat("{0}={1}", e.Key.ToString(), DictionaryToString((IDictionary)e.Value)); else if (e.Value is IList) sb.AppendFormat("{0}={1}", e.Key.ToString(), ListToString((IList)e.Value)); else sb.AppendFormat("{0}={1}", e.Key.ToString(), e.Value.ToString()); i++; } sb.Append("}"); } else sb.Insert(0, "null"); return sb.ToString(); }
/// <summary> /// Initializes a new instance of the <see cref="VistaDBErrorLog"/> class /// using a dictionary of configured settings. /// </summary> public VistaDBErrorLog(IDictionary config) { if (config == null) throw new ArgumentNullException("config"); _connectionString = ConnectionStringHelper.GetConnectionString(config); // // If there is no connection string to use then throw an // exception to abort construction. // if (_connectionString.Length == 0) throw new ApplicationException("Connection string is missing for the VistaDB error log."); _databasePath = ConnectionStringHelper.GetDataSourceFilePath(_connectionString); InitializeDatabase(); string appName = Mask.NullString((string)config["applicationName"]); if (appName.Length > _maxAppNameLength) { throw new ApplicationException(string.Format( "Application name is too long. Maximum length allowed is {0} characters.", _maxAppNameLength.ToString("N0"))); } ApplicationName = appName; }
/// <summary> /// Initializes a new instance of the <see cref="SqlErrorLog"/> class /// using a dictionary of configured settings. /// </summary> public SqlErrorLog(IDictionary config) { if (config == null) throw new ArgumentNullException("config"); var connectionString = ConnectionStringHelper.GetConnectionString(config); // // If there is no connection string to use then throw an // exception to abort construction. // if (connectionString.Length == 0) throw new ApplicationException("Connection string is missing for the SQL error log."); _connectionString = connectionString; // // Set the application name as this implementation provides // per-application isolation over a single store. // var appName = config.Find("applicationName", string.Empty); if (appName.Length > _maxAppNameLength) { throw new ApplicationException(string.Format( "Application name is too long. Maximum length allowed is {0} characters.", _maxAppNameLength.ToString("N0"))); } ApplicationName = appName; }
/// <summary> /// Initializes a new instance of the <see cref="AccessErrorLog"/> class /// using a dictionary of configured settings. /// </summary> public AccessErrorLog(IDictionary config) { if (config == null) throw new ArgumentNullException("config"); string connectionString = ConnectionStringHelper.GetConnectionString(config); // // If there is no connection string to use then throw an // exception to abort construction. // if (connectionString.Length == 0) throw new ApplicationException("Connection string is missing for the Access error log."); _connectionString = connectionString; InitializeDatabase(); // // Set the application name as this implementation provides // per-application isolation over a single store. // string appName = Mask.NullString((string)config["applicationName"]); if (appName.Length > _maxAppNameLength) { throw new ApplicationException(string.Format( "Application name is too long. Maximum length allowed is {0} characters.", _maxAppNameLength.ToString("N0"))); } ApplicationName = appName; }
public override System.Collections.BitArray Bits(IndexReader reader) { if (cache == null) { cache = new SupportClass.WeakHashTable(); } System.Object cached = null; lock (cache.SyncRoot) { // check cache cached = cache[reader]; } if (cached != null) { if (cached is System.Collections.BitArray) { return (System.Collections.BitArray) cached; } else if (cached is DocIdBitSet) return ((DocIdBitSet) cached).GetBitSet(); // It would be nice to handle the DocIdSet case, but that's not really possible } System.Collections.BitArray bits = filter.Bits(reader); lock (cache.SyncRoot) { // update cache cache[reader] = bits; } return bits; }
public override System.Collections.BitArray Bits(IndexReader reader) { if (cache == null) { cache = new System.Collections.Hashtable(); } lock (cache.SyncRoot) { // check cache System.Collections.BitArray cached = (System.Collections.BitArray) cache[reader]; if (cached != null) { return cached; } } System.Collections.BitArray bits = filter.Bits(reader); lock (cache.SyncRoot) { // update cache cache[reader] = bits; } return bits; }
public virtual void AddEntry(object key, object value) { if (map == null) { map = new NeoDatis.Tool.Wrappers.Map.OdbHashMap(); } map.Add(key, value); }
public virtual void Close() { // Clear the hard refs; then, the only remaining refs to // all values we were storing are weak (unless somewhere // else is still using them) and so GC may reclaim them: hardRefs = null; t = null; }
public MultiFieldComparator(string[] names, NeoDatis.Odb.Core.OrderByConstants orderByType ) { this.fieldNames = names; map = new System.Collections.Hashtable(); this.way = orderByType.IsOrderByAsc() ? 1 : -1; this.classIntrospector = NeoDatis.Odb.OdbConfiguration.GetCoreProvider().GetClassIntrospector (); }
public ValidationException(Result result) : base("There was a problem validating the submission. See data property for messages.") { this.data = new Dictionary<string, string>(); foreach (var message in result.FailureMessages) { this.data.Add(message.PropertyName, message.Message); } }
/// <summary> An AttributeSource that uses the same attributes as the supplied one.</summary> public AttributeSource(AttributeSource input) { if (input == null) { throw new System.ArgumentException("input AttributeSource must not be null"); } this.attributes = input.attributes; this.attributeImpls = input.attributeImpls; this.factory = input.factory; }
/// <summary> /// Creates an object given its text-based type specification /// (see <see cref="System.Type.GetType"/> for notes on the /// specification) and optionally sends it settings for /// initialization. /// </summary> public static object Create(string typeSpec, IDictionary settings) { if (typeSpec.Length == 0) return null; Type type = Type.GetType(typeSpec, true); return (settings == null) ? Activator.CreateInstance(type) : Activator.CreateInstance(type, new object[] { settings }); }
/// <param name="memoryModel">MemoryModel to use for primitive object sizes. /// </param> /// <param name="checkInterned">check if Strings are interned and don't add to size /// if they are. Defaults to true but if you know the objects you are checking /// won't likely contain many interned Strings, it will be faster to turn off /// intern checking. /// </param> public RamUsageEstimator(MemoryModel memoryModel, bool checkInterned) { this.memoryModel = memoryModel; this.checkInterned = checkInterned; // Use Map rather than Set so that we can use an IdentityHashMap - not // seeing an IdentityHashSet seen = new System.Collections.Hashtable(64); // {{Aroush-2.9}} Port issue; need to mimic java's IdentityHashMap equals() through C#'s Equals() this.refSize = memoryModel.GetReferenceSize(); this.arraySize = memoryModel.GetArraySize(); this.classSize = memoryModel.GetClassSize(); }
public LMSMemoryErrorLog(IDictionary config) : base(config) { //Trace.TraceInformation("LMS Elmah logger starting"); var logId = Helpers.Helpers.ResolveLogId(config); var url = Helpers.Helpers.ResolveUrl(config); this.ApplicationName = Helpers.Helpers.ResolveApplicationName(config); _client = new RestApi(url, logId); //Trace.TraceInformation("LMS Elmah logger started"); }
public BufferedDeletes(bool doTermSort) { this.doTermSort = doTermSort; if (doTermSort) { terms = new System.Collections.Generic.SortedDictionary<object, object>(); } else { terms = new System.Collections.Hashtable(); } }
public FakeHttpContext(string url, FakePrincipal principal, NameValueCollection formParams, NameValueCollection queryStringParams, HttpCookieCollection cookies, SessionStateItemCollection sessionItems ) { _url = url; _principal = principal; _formParams = formParams; _queryStringParams = queryStringParams; _cookies = cookies; _session = new FakeHttpSessionState(sessionItems); _request = new FakeHttpRequest(_url, _formParams, _queryStringParams, _cookies); _server = new FakeHttpServerUtility(); _items = new Dictionary<string, object>(); }
/// <summary>Creates <code>MimeHeaders</code> using the default content type /// <code>DEFAULT_CONTENT_TYPE</code> and default content transfre encoding /// <code>DEFAULT_CONTENT_TRANSFER_ENCODING</code>.</summary> public MimeHeaders() { lenHeaders = HEADER_SUFFIX.Length; comparer = System.Collections.CaseInsensitiveComparer.DefaultInvariant; // most messages will have around 2 headers... no need to waste // time and memory on a Hashtable mimeHeadersTable = new System.Collections.Specialized.ListDictionary(comparer); //mimeHeadersTable = new System.Collections.Hashtable(DEFAULT_HEADER_TABLE_SIZE, // System.Collections.CaseInsensitiveHashCodeProvider.DefaultInvariant, // comparer); }
private static string GetString(IDictionary options, string name) { Debug.Assert(name != null); if (options == null) return string.Empty; object value = options[name]; if (value == null) return string.Empty; return value.ToString() ?? string.Empty; }
// Constructors /// <summary> /// Initializes a new instance of the <see cref="T:ServiceError"/> class. /// </summary> /// <param name="exception">The exception to wrap.</param> /// <exception cref="System.ArgumentNullException"><paramref name="exception"/> is a null reference.</exception> public ServiceError(Exception exception) : base() { if (exception == null) { throw new ArgumentNullException("exception"); } this._className = exception.GetType().Name; this._typeName = exception.GetType().FullName; this._message = exception.Message; this._stackTrace = exception.StackTrace; this._data = exception.Data; this._hResult = (Int32)exception.GetPropertyValue("HResult"); this._innerError = exception.InnerException != null ? new ServiceError(exception.InnerException) : null; }
static Identifier() { idMap_ = new System.Collections.Hashtable(); { // Valid JMS header fields System.String[] jmsHeaders_ = new System.String[]{"JMSDeliveryMode", "JMSPriority", "JMSMessageID", "JMSTimestamp", "JMSCorrelationID", "JMSType", "JMSRedelivered", "JMSExpiration"}; //UPGRADE_TODO: The equivalent in .NET for method 'java.util.Arrays.asList' may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043"' jmsHeadersSet_ = new SupportClass.HashSetSupport(SupportClass.CollectionSupport.ToCollectionSupport(jmsHeaders_)); // Valid JMS header fields System.String[] reservedNames_ = new System.String[]{"NULL", "TRUE", "FALSE", "NULL", "NOT", "AND", "OR", "BETWEEN", "LIKE", "IN", "IS", "ESCAPE"}; //UPGRADE_TODO: The equivalent in .NET for method 'java.util.Arrays.asList' may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043"' reservedNamesSet_ = new SupportClass.HashSetSupport(SupportClass.CollectionSupport.ToCollectionSupport(reservedNames_)); } }
/// <summary> /// Gets the connection string from the given configuration /// dictionary. /// </summary> public static string GetConnectionString(IDictionary config) { Debug.Assert(config != null); #if !NET_1_1 && !NET_1_0 // // First look for a connection string name that can be // subsequently indexed into the <connectionStrings> section of // the configuration to get the actual connection string. // string connectionStringName = (string)config["connectionStringName"] ?? string.Empty; if (connectionStringName.Length > 0) { ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings[connectionStringName]; if (settings == null) return string.Empty; return settings.ConnectionString ?? string.Empty; } #endif // // Connection string name not found so see if a connection // string was given directly. // string connectionString = Mask.NullString((string)config["connectionString"]); if (connectionString.Length > 0) return connectionString; // // As a last resort, check for another setting called // connectionStringAppKey. The specifies the key in // <appSettings> that contains the actual connection string to // be used. // string connectionStringAppKey = Mask.NullString((string)config["connectionStringAppKey"]); if (connectionStringAppKey.Length == 0) return string.Empty; return Configuration.AppSettings[connectionStringAppKey]; }
private void Init() { lock (this) { if (openFiles == null) { openFiles = new System.Collections.Hashtable(); openFilesDeleted = new System.Collections.Hashtable(); } if (createdFiles == null) createdFiles = new System.Collections.Hashtable(); if (unSyncedFiles == null) unSyncedFiles = new System.Collections.Hashtable(); } }
/// <summary> /// Initializes a new instance of the <see cref="MemoryErrorLog"/> class /// using a dictionary of configured settings. /// </summary> public MemoryErrorLog(IDictionary config) { if (config == null) { _size = DefaultSize; return; } string sizeString = (string)config["size"] ?? ""; if (sizeString.Length == 0) { _size = DefaultSize; return; } _size = Convert.ToInt32(sizeString, CultureInfo.InvariantCulture); _size = Math.Max(0, Math.Min(MaximumSize, _size)); }
private void Init() { lock (this) { System.Collections.Hashtable caches2 = new System.Collections.Hashtable(7); caches2[System.Type.GetType("System.SByte")] = new ByteCache(this); caches2[System.Type.GetType("System.Int16")] = new ShortCache(this); caches2[System.Type.GetType("System.Int32")] = new IntCache(this); caches2[System.Type.GetType("System.Single")] = new FloatCache(this); caches2[System.Type.GetType("System.Int64")] = new LongCache(this); caches2[System.Type.GetType("System.Double")] = new DoubleCache(this); caches2[typeof(System.String)] = new StringCache(this); caches2[typeof(StringIndex)] = new StringIndexCache(this); caches2[typeof(System.IComparable)] = new CustomCache(this); caches2[typeof(System.Object)] = new AutoCache(this); caches = caches2; } }
/// <summary> /// Gets the connection string from the given configuration /// dictionary. /// </summary> public static string GetConnectionString(IDictionary config) { Debug.Assert(config != null); // // First look for a connection string name that can be // subsequently indexed into the <connectionStrings> section of // the configuration to get the actual connection string. // string connectionStringName = config.Find("connectionStringName", string.Empty); if (connectionStringName.Length > 0) { ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings[connectionStringName]; if (settings == null) return string.Empty; return settings.ConnectionString ?? string.Empty; } // // Connection string name not found so see if a connection // string was given directly. // var connectionString = config.Find("connectionString", string.Empty); if (connectionString.Length > 0) return connectionString; // // As a last resort, check for another setting called // connectionStringAppKey. The specifies the key in // <appSettings> that contains the actual connection string to // be used. // var connectionStringAppKey = config.Find("connectionStringAppKey", string.Empty); return connectionStringAppKey.Length > 0 ? ConfigurationManager.AppSettings[connectionStringAppKey] : string.Empty; }
public object CreateInstance(System.Collections.IDictionary propertyValues) { }
public override void InitializeNewComponent(System.Collections.IDictionary defaultValues) { base.InitializeNewComponent(defaultValues); Control.Text = "Header text"; }
protected override IComponent[] CreateComponentsCore(IDesignerHost host, System.Collections.IDictionary defaultValues) { Init(host); return(base.CreateComponentsCore(host, defaultValues)); }
/// <summary> /// /// </summary> /// <param name="savedState"></param> public override void Commit(System.Collections.IDictionary savedState) { base.Commit(savedState); }
public static Microsoft.CSharp.CompilerError[] Compile(string[] sourceTexts, string[] sourceTextNames, string target, string[] imports, System.Collections.IDictionary options) { throw null; }
/// <summary> /// /// </summary> /// <param name="savedState"></param> public override void Rollback(System.Collections.IDictionary savedState) { base.Rollback(savedState); }
protected override void PostFilterProperties(System.Collections.IDictionary properties) { base.PostFilterProperties(properties); properties.Remove("Font"); }
public override void Install(System.Collections.IDictionary stateSaver) { }
public override void Uninstall(System.Collections.IDictionary savedState) { Program.Main(); }
public void Extract(IDataReader row, System.Collections.IDictionary result) { result.Add(_selection, _extract(row, _selection)); }
public virtual object CreateInstance(ITypeDescriptorContext context, System.Collections.IDictionary propertyValues) { }
public InstallEventArgs(System.Collections.IDictionary savedState) { }
protected override void OnAfterInstall(System.Collections.IDictionary savedState) { base.OnAfterInstall(savedState); }
internal static System.Collections.Generic.IEnumerable <object> GetPropertyKeys(this System.Collections.IDictionary dictionary) { if (null != dictionary) { foreach (var each in dictionary.Keys) { yield return(each); } } }
public override void Commit(System.Collections.IDictionary savedState) { base.Commit(savedState); // Nothing needs to be done during Commit. }
internal static System.Collections.Generic.IEnumerable <System.Collections.Generic.KeyValuePair <object, object> > GetFilteredProperties(this System.Collections.IDictionary instance, global::System.Collections.Generic.HashSet <string> exclusions = null, global::System.Collections.Generic.HashSet <string> inclusions = null) { return((null == instance || instance.Count == 0) ? Enumerable.Empty <System.Collections.Generic.KeyValuePair <object, object> >() : instance.Keys.OfType <object>() .Where(key => !(true == exclusions?.Contains(key?.ToString())) && (false != inclusions?.Contains(key?.ToString()))) .Select(key => new System.Collections.Generic.KeyValuePair <object, object>(key, instance[key]))); }
/// <summary> /// Implementations of this function are called by PowerShell to complete arguments. /// </summary> /// <param name="commandName">The name of the command that needs argument completion.</param> /// <param name="parameterName">The name of the parameter that needs argument completion.</param> /// <param name="wordToComplete">The (possibly empty) word being completed.</param> /// <param name="commandAst">The command ast in case it is needed for completion.</param> /// <param name="fakeBoundParameters">This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot /// or will not attempt to evaluate an argument, in which case you may need to use commandAst.</param> /// <returns> /// A collection of completion results, most like with ResultType set to ParameterValue. /// </returns> public System.Collections.Generic.IEnumerable <System.Management.Automation.CompletionResult> CompleteArgument(System.String commandName, System.String parameterName, System.String wordToComplete, System.Management.Automation.Language.CommandAst commandAst, System.Collections.IDictionary fakeBoundParameters) { if (System.String.IsNullOrEmpty(wordToComplete) || "Microsoft.AppConfiguration/configurationStores".StartsWith(wordToComplete, System.StringComparison.InvariantCultureIgnoreCase)) { yield return(new System.Management.Automation.CompletionResult("Microsoft.AppConfiguration/configurationStores", "Microsoft.AppConfiguration/configurationStores", System.Management.Automation.CompletionResultType.ParameterValue, "Microsoft.AppConfiguration/configurationStores")); } }
/// <summary> /// Gets the connection string from the given configuration, /// resolving <c>~/</c> and <c>|DataDirectory|</c> if requested. /// </summary> public static string GetConnectionString(IDictionary config, bool resolveDataSource) { var connectionString = GetConnectionString(config); return(resolveDataSource ? GetResolvedConnectionString(connectionString) : connectionString); }
public override void SendInBackground(System.Exception exception, System.Collections.Generic.IList <string> tags, System.Collections.IDictionary userCustomData) { if (CanSend(exception)) { // We need to process the HttpRequestMessage on the current thread, // otherwise it will be disposed while we are using it on the other thread. RaygunRequestMessage currentRequestMessage = BuildRequestMessage(); ThreadPool.QueueUserWorkItem(c => { _currentRequestMessage.Value = currentRequestMessage; Send(BuildMessage(exception, tags, userCustomData)); _currentRequestMessage.Value = null; }); FlagAsSent(exception); } }
private void ConfigStructure() { System.Collections.IDictionary settings = (System.Collections.IDictionary)ConfigurationManager.GetSection("formSettings/azioniForm"); Regex falseMatch = new Regex("false|0", RegexOptions.IgnoreCase); if (Workbook.Repository.Applicazione["VisCategoriaRiepilogo"].Equals("0")) { panelCategorie.Hide(); Width -= panelCategorie.Width; } if (Workbook.Repository.Applicazione["VisMeteo"].Equals("0")) { btnMeteo.Hide(); } if (Workbook.Repository.Applicazione["ModificaDinamica"].Equals("0")) { groupMercati.Hide(); } else { int hour = DateTime.Now.Hour; Dictionary <string, SpecMercato> mercati = new Dictionary <string, SpecMercato>(); if (Workbook.IdApplicazione == 10) { mercati = Simboli.MercatiMB; } /* * // inutile perchè per l'id = 18 ModificaDinamica è stata impostata a 0, e quindi viene nascosta la groupBox * // groupMercati * else if (Workbook.IdApplicazione == 18) * { * mercati = Simboli.MercatiMI; * } */ var mercatoAttivo = mercati .Select(kv => new { Nome = kv.Key, Attivo = kv.Value.Chiusura > hour }); // Escludo i mercati MI1, MI2 3 MI3 in caso di irario antecedente alle 13:00 -> inutile perchè // per l'id = 18 ModificaDinamica è stata impostata a 0, e quindi viene nascosta la groupBox groupMercati /*if (Workbook.IdApplicazione == 18) * { * if (hour < Simboli.MercatiMI["MI7"].Chiusura) * { * mercatoAttivo = mercati.Select(kv => new { Nome = kv.Key, Attivo = kv.Value.Chiusura > hour && !(kv.Key == "MI1" || kv.Key == "MI2" || kv.Key == "MI3") }); * } * }*/ int leftInc = groupMercati.Width / mercati.Count; int i = 0; foreach (var mk in mercatoAttivo) { CheckBox chk = new CheckBox() { Name = "check" + mk.Nome, Text = mk.Nome, AutoSize = true, Enabled = mk.Attivo, Checked = mk.Attivo, Location = new Point(3 + leftInc * i++, (groupMercati.Height / 2) - 5) }; groupMercati.Controls.Add(chk); } } }
/// <summary> /// /// </summary> /// <param name="savedState"></param> public override void Uninstall(System.Collections.IDictionary savedState) { base.Uninstall(savedState); }
public SerialNumber(string eventName, System.Configuration.Install.InstallContext context, System.Collections.IDictionary savedState) { InitializeComponent(); }
public bool BuildProjectFile(string projectFileName, string[] targetNames, System.Collections.IDictionary globalProperties, System.Collections.IDictionary targetOutputs) { throw new NotImplementedException(); }
/// <summary> /// We override Install so we can add our assembly to the proper /// machine.config files. /// </summary> /// <param name="stateSaver"></param> public override void Install(System.Collections.IDictionary stateSaver) { base.Install(stateSaver); AddProviderToMachineConfig(); }
internal static T MapException <T>(Exception x, bool remap, bool unused) where T : Exception { #if FIRST_PASS return(null); #else Exception org = x; bool nonJavaException = !(x is Throwable); if (nonJavaException && remap) { if (x is TypeInitializationException) { return((T)MapTypeInitializeException((TypeInitializationException)x, typeof(T))); } object obj = exceptions.get(x); Exception remapped = (Exception)obj; if (remapped == null) { remapped = Throwable.__mapImpl(x); if (remapped == x) { exceptions.put(x, NOT_REMAPPED); } else { exceptions.put(x, remapped); x = remapped; } } else if (remapped != NOT_REMAPPED) { x = remapped; } } if (IsInstanceOfType <T>(x, remap)) { Throwable t = x as Throwable; if (t != null) { if (!unused && t.tracePart1 == null && t.tracePart2 == null && t.stackTrace == Throwable.UNASSIGNED_STACK) { t.tracePart1 = new StackTrace(org, true); t.tracePart2 = new StackTrace(true); } if (t != org) { t.original = org; exceptions.remove(org); } } else { IDictionary data = x.Data; if (data != null && !data.IsReadOnly) { lock (data.SyncRoot) { if (!data.Contains(EXCEPTION_DATA_KEY)) { data.Add(EXCEPTION_DATA_KEY, new ExceptionInfoHelper(x, true)); } } } } if (nonJavaException && !remap) { exceptions.put(x, NOT_REMAPPED); } return((T)x); } return(null); #endif }
/// <summary> /// Creates an instance of the object. /// </summary> public UpdateObjectArgs(System.Collections.IDictionary keys, System.Collections.IDictionary values, System.Collections.IDictionary oldValues) { _keys = keys; _values = values; _oldValues = oldValues; }
public virtual void InitializeNewComponent(System.Collections.IDictionary defaultValues) { }
/// <summary> /// Render a single variable, where the variable value is an associative map (<see cref="IDictionary"/>). /// </summary> /// <param name="builder">The <see cref="StringBuilder"/> to render to.</param> /// <param name="variable">The variable being rendered.</param> /// <param name="variableValue">The value of the variable being rendered.</param> /// <param name="first"> /// <see langword="true"/> if this is the first variable being rendered from this expression; otherwise, /// <see langword="false"/>. Variables which do not have an associated parameter, or whose parameter value /// is <see langword="null"/>, are treated as though they were completely omitted for the purpose of /// determining the first variable. /// </param> /// <exception cref="ArgumentNullException"> /// <para>If <paramref name="builder"/> is <see langword="null"/>.</para> /// <para>-or-</para> /// <para>If <paramref name="variable"/> is <see langword="null"/>.</para> /// <para>-or-</para> /// <para>If <paramref name="variableValue"/> is <see langword="null"/>.</para> /// </exception> protected abstract void RenderDictionary(StringBuilder builder, VariableReference variable, IDictionary variableValue, bool first);
public override void Uninstall(System.Collections.IDictionary savedState) { base.Uninstall(savedState); InstallUtil.RemoveUIModuleProvider("PHP"); }
protected override void OnBeforeInstall(System.Collections.IDictionary savedState) { base.OnBeforeInstall(savedState); Context.Parameters["assemblypath"] = "\"" + Assembly.GetEntryAssembly().Location + "\""; }