NClass.DiagramEditor.Style.AddToList C# (CSharp) Method

AddToList() private static method

private static AddToList ( Style style, string stylePath ) : void
style Style
stylePath string
return void
		private static void AddToList(Style style, string stylePath)
		{
			if (!styles.ContainsKey(stylePath))
			{
				styles.Add(stylePath, style);
			}
			else // Replace the old style
			{
				styles.Remove(stylePath);
				styles.Add(stylePath, style);
			}
		}