示例#1
0
        public async Task <bool> SaveAsync(IProgressEx Progress)
        {
            if ((await ComponentSet.SaveAsync(Progress)) == false)
            {
                return(false);
            }

            if ((await ViewSet.SaveAsync(Progress)) == false)
            {
                return(false);
            }

            try
            {
                XDocument xDoc = new XDocument();

                xDoc.Add(this.Xml);

                xDoc.Save(_projectFilePath);

                _hasChanges = false;
            }
            catch (Exception ex)
            {
                MainLogger.Log(ex);
                return(false);
            }

            return(true);
        }