/// <summary> /// Creates a new desktop. /// </summary> /// <param name="name">The name of the desktop to create. Names are case sensitive.</param> /// <returns>If successful, a Desktop object, otherwise, null.</returns> public static Desktop CreateDesktop(string name) { // open the desktop. Desktop desktop = new Desktop(); bool result = desktop.Create(name); // somethng went wrong. if (!result) { return(null); } return(desktop); }
/// <summary> /// Creates a new desktop. /// </summary> /// <param name="name">The name of the desktop to create. Names are case sensitive.</param> /// <returns>If successful, a Desktop object, otherwise, null.</returns> public static Desktop CreateDesktop(string name) { // open the desktop. Desktop desktop = new Desktop(); bool result = desktop.Create(name); // somethng went wrong. if (!result) return null; return desktop; }