private static MD.Enums.PanelLoadType ConvertPanelLoadType(MM.Enums.PanelLoadType pt) { switch (pt) { case MM.Enums.PanelLoadType.Corner1: return(MD.Enums.PanelLoadType.Corner1); case MM.Enums.PanelLoadType.Corner2: return(MD.Enums.PanelLoadType.Corner2); case MM.Enums.PanelLoadType.Corner3: return(MD.Enums.PanelLoadType.Corner3); case MM.Enums.PanelLoadType.Corner4: return(MD.Enums.PanelLoadType.Corner4); default: throw new ArgumentException(); } }
private static VMPanelLoadType Convert(MPanelLoadType type) { switch (type) { case MPanelLoadType.Corner1: return(VMPanelLoadType.Corner1); case MPanelLoadType.Corner2: return(VMPanelLoadType.Corner2); case MPanelLoadType.Corner3: return(VMPanelLoadType.Corner3); case MPanelLoadType.Corner4: return(VMPanelLoadType.Corner4); default: throw new ArgumentOutOfRangeException(); } }