NClass.DiagramEditor.Style.AddToList C# (CSharp) 메소드

AddToList() 개인적인 정적인 메소드

private static AddToList ( Style style, string stylePath ) : void
style Style
stylePath string
리턴 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);
			}
		}