예제 #1
0
        private void _buttonSave_Click(object sender, EventArgs e)
        {
            try
            {
                Table_VideosArchive video;

                if (_isNewVideo)
                {
                    video = new Table_VideosArchive();
                    Lookup.Db.Table_VideosArchives.InsertOnSubmit(video);
                }
                else
                {
                    video = Filter.GetVideoFromId(_videoId);
                }
                video.EmbedUrl = _textBoxVideoEmbedUrl.Text;
                video.AlternateText = _textBoxVideoAlternateText.Text;
                video.Description = _textBoxVideoDescription.Text;
                video.Caption = _textBoxVideoCaption.Text;

                Lookup.Db.SubmitChanges();
            }
            catch
            {
            }
        }
 partial void DeleteTable_VideosArchive(Table_VideosArchive instance);
 partial void UpdateTable_VideosArchive(Table_VideosArchive instance);
 partial void InsertTable_VideosArchive(Table_VideosArchive instance);