private void ActionGridViewMouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { ActionGridView.DoDragDrop(ActionGridView.CurrentRow, DragDropEffects.All); } }
/// <summary> /// Initializes a new instance of the <see cref="PagePresenter"/> class. /// </summary> /// <param name="initial">The initial.</param> /// <param name="textBoxHolder">The text box holder.</param> /// <param name="actionGrid">The action grid.</param> /// <param name="left">The left portraits.</param> /// <param name="right">The right portraits.</param> /// <param name="header">The header.</param> /// <param name="sound">The sound.</param> public PagePresenter(Page initial, TextBoxHolderView textBoxHolder, ActionGridView actionGrid, PortraitHolderView left, PortraitHolderView right, HeaderView header, SoundView sound) { this.textBoxHolder = textBoxHolder; this.actionGrid = actionGrid; this.left = left; this.right = right; this.header = header; this.sound = sound; this.characterPresenters = new List <CharacterPresenter>(); InitializeFunctions(); this.presenters = new Dictionary <Character, CharacterPresenter>(new IdNumberEqualityComparer <Character>()); this.Page = initial; }