/// <summary> /// Close current system /// </summary> private bool Close() { if (!LibraryData.SystemIsOpen) { return(true); } if (!IsInDesignMode) { var qq = new SystemFileSaveAsk(); if (!qq.Save()) { return(false); } } LibraryData.CloseProject(); TabCollection.RemoveAll(q => q is MainUnitViewModel || q is PanelViewModel); LibraryData.SystemFileName = string.Empty; RaisePropertyChanged(() => FileName); RaisePropertyChanged(() => InstallerVersion); return(true); }