Exemplo n.º 1
0
        /// <summary>
        /// Saves a manifest to disk.
        /// </summary>
        private void SaveManifest()
        {
            SaveFileDialog SFDialog = new SaveFileDialog();
            SFDialog.AddExtension = true;
            SFDialog.AutoUpgradeEnabled = true;
            SFDialog.Filter = "*.manifest|*.manifest";
            SFDialog.Title = "Save Manifest...";

            if (SFDialog.ShowDialog() == DialogResult.OK)
            {
                ManifestFile ManFile = new ManifestFile(SFDialog.FileName,
                    NumMajor.Value.ToString() + "." + NumMinor.Value.ToString() + "." + NumPatch.Value.ToString(),
                    m_PatchFiles);
            }

            m_IsManifestSaved = true;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Saves a manifest to disk.
        /// </summary>
        private void SaveManifest()
        {
            SaveFileDialog SFDialog = new SaveFileDialog();

            SFDialog.AddExtension       = true;
            SFDialog.AutoUpgradeEnabled = true;
            SFDialog.Filter             = "*.manifest|*.manifest";
            SFDialog.Title = "Save Manifest...";

            if (SFDialog.ShowDialog() == DialogResult.OK)
            {
                ManifestFile ManFile = new ManifestFile(SFDialog.FileName,
                                                        NumMajor.Value.ToString() + "." + NumMinor.Value.ToString() + "." + NumPatch.Value.ToString(),
                                                        m_PatchFiles);
            }

            m_IsManifestSaved = true;
        }
Exemplo n.º 3
0
        private void loadManifestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog OFDiag = new OpenFileDialog();

            OFDiag.AutoUpgradeEnabled = true;
            OFDiag.CheckPathExists    = true;
            OFDiag.Title = "Open Manifest";

            if (OFDiag.ShowDialog() == DialogResult.OK)
            {
                ManifestFile Manifest = new ManifestFile(File.Open(OFDiag.FileName, FileMode.Open));
                m_PatchFiles = Manifest.PatchFiles;

                foreach (PatchFile PFile in m_PatchFiles)
                {
                    LstFiles.Items.Add(PFile.Address);
                }
            }
        }
Exemplo n.º 4
0
        private void loadManifestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog OFDiag = new OpenFileDialog();
            OFDiag.AutoUpgradeEnabled = true;
            OFDiag.CheckPathExists = true;
            OFDiag.Title = "Open Manifest";

            if (OFDiag.ShowDialog() == DialogResult.OK)
            {
                ManifestFile Manifest = new ManifestFile(File.Open(OFDiag.FileName, FileMode.Open));
                m_PatchFiles = Manifest.PatchFiles;

                foreach (PatchFile PFile in m_PatchFiles)
                    LstFiles.Items.Add(PFile.Address);
            }
        }