/// <summary> /// goto desktop mode /// </summary> /// <param name="param"></param> private void GotoDesktopMode(string param) { try { Hide(); if (param.ToLower().StartsWith("browser")) { desktopModeWindow = new DesktopView(this, param.ToLower()); } else if (param.Contains("File")) { param = Directory.GetFiles(Constants.AttachmentResources).FirstOrDefault(s => Path.GetFileNameWithoutExtension(s) == Path.GetFileNameWithoutExtension(param)); desktopModeWindow = new DesktopView(this, param); } else { desktopModeWindow = new DesktopView(this, ""); } if (desktopModeWindow != null) { desktopModeWindow.Show(); } else { Show(); } } catch (Exception ex) { App.InsertException(ex); } }