public TypeNameCreator(ExistingNames existingNames) { this.existingNames = existingNames; createUnknownTypeName = CreateNameCreator("Type"); createEnumName = CreateNameCreator("Enum"); createStructName = CreateNameCreator("Struct"); createDelegateName = CreateNameCreator("Delegate"); createClassName = CreateNameCreator("Class"); createInterfaceName = CreateNameCreator("Interface"); var names = new string[] { "Exception", "EventArgs", "Attribute", "Form", "Dialog", "Control", "Stream", }; foreach (var name in names) { nameInfos.Add(name, CreateNameCreator(name)); } }
private void CreateNewCounterSourceInfo(string cs) { CounterNameInfoOld counterNameInfo = new CounterNameInfoOld(cn, GetNextCounterNameId()); NameInfos.Add(cn, counterNameInfo); CountersDatabase.Instance.SaveCounterNameInfo(this, counterNameInfo); }