/// <summary> /// Creates the empty model. /// </summary> /// <returns>UAModelDesignerSolution.</returns> internal static UAModelDesignerSolution CreateEmptyModel() { return(new UAModelDesignerSolution() { Name = Resources.DefaultSolutionName, Projects = new UAModelDesignerProject[] { }, ServerDetails = UAModelDesignerSolutionServerDetails.CreateEmptyInstance() }); }
/// <summary> /// Creates an empty solution model. /// </summary> /// <returns>UAModelDesignerSolution.</returns> internal static UAModelDesignerSolution CreateEmptyModel(string solutionName) { return(new UAModelDesignerSolution() { Name = solutionName, Projects = new UAModelDesignerProject[] { }, ServerDetails = UAModelDesignerSolutionServerDetails.CreateEmptyInstance() }); }
public void OnDeserialized(StreamingContext context) { ServerDetails = ServerDetails ?? UAModelDesignerSolutionServerDetails.CreateEmptyInstance(); }