Esempio n. 1
0
        /// <summary>
        /// Save the selected movie
        /// </summary>
        private void btnSave_Click(object sender, EventArgs e)
        {
            Movie.Extra.Author      = txtAuthor.Text;
            Movie.Extra.Description = txtDescription.Text;

            Filename = txtFilename.Text;

            Movie.Save(Filename, ref MovieData.Input);

            this.Close();
        }
Esempio n. 2
0
        /// <summary>
        /// Save the current movie, overwriting the original
        /// </summary>
        private void mnuSave_Click(object sender, EventArgs e)
        {
            DialogResult verifyOverwrite = MessageBox.Show(this,
                                                           "Are you sure you want to overwrite the existing file?",
                                                           "Confirm Overwrite",
                                                           MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);

            if (verifyOverwrite != DialogResult.OK)
            {
                return;
            }

            Movie.Save("", ref FrameData.Input);
        }