Exemplo n.º 1
0
        /// <summary>
        /// Handles the Click event of the btnMoveUp control.
        /// </summary>
        /// <param name="sender">
        /// The source of the event.
        /// </param>
        /// <param name="e">
        /// The <see cref="System.EventArgs"/> instance containing the event data.
        /// </param>
        private void btnMoveUp_Click(object sender, EventArgs e)
        {
            MovieSetObjectModel currentRow = this.GetCurrentRow();

            if (currentRow == null)
            {
                return;
            }

            MovieSetManager.GetCurrentSet.MoveMovieUp(currentRow.MovieUniqueId);

            this.RefreshAndReorder();
            this.SwitchUpDownButtons();
            MovieSetManager.SetAllMoviesChangedInCurrentSet();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the Click event of the btnTrash control.
 /// </summary>
 /// <param name="sender">
 /// The source of the event.
 /// </param>
 /// <param name="e">
 /// The <see cref="System.EventArgs"/> instance containing the event data.
 /// </param>
 private void btnTrash_Click(object sender, EventArgs e)
 {
     this.RemoveMovieFromSet();
     MovieSetManager.SetAllMoviesChangedInCurrentSet();
 }