Esempio n. 1
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            string fileName = mFilename;

            if (File.Exists(fileName) == false)
            {
                CoreGlobals.ShowMessage("File Missing: " + fileName);
                return;
            }
            if ((File.GetAttributes(fileName) & FileAttributes.ReadOnly) == FileAttributes.ReadOnly)
            {
                CoreGlobals.ShowMessage("Please check out: " + fileName);
                return;
            }


            BaseLoader <ProtoConceptDatabase> .Save(mFilename, mDatabase);

            XMBProcessor.CreateXMB(mFilename, false);
        }
Esempio n. 2
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            BaseLoader <UserClassDefinitions> .Save(mFileName, mUserClassDefinitions);

            XMBProcessor.CreateXMB(mFileName, false);
        }