Example #1
0
        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));
            }
        }
Example #2
0
        private void CreateNewCounterSourceInfo(string cs)
        {
            CounterNameInfoOld counterNameInfo = new CounterNameInfoOld(cn, GetNextCounterNameId());

            NameInfos.Add(cn, counterNameInfo);
            CountersDatabase.Instance.SaveCounterNameInfo(this, counterNameInfo);
        }