mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Simplify member access
This commit is contained in:
parent
31426b4e5e
commit
e5be61ba5b
@ -87,12 +87,12 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
dataObject.SetText(_dragText, TextDataFormat.Text);
|
||||
|
||||
_dragFromThis = true;
|
||||
if (Control.ModifierKeys == Keys.Control)
|
||||
if (ModifierKeys == Keys.Control)
|
||||
{
|
||||
_dragRemoveOld = false;
|
||||
DoDragDrop(dataObject, DragDropEffects.Copy);
|
||||
}
|
||||
else if (Control.ModifierKeys == Keys.None)
|
||||
else if (ModifierKeys == Keys.None)
|
||||
{
|
||||
_dragRemoveOld = true;
|
||||
DoDragDrop(dataObject, DragDropEffects.Move);
|
||||
@ -214,7 +214,7 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
{
|
||||
if (e.Data.GetDataPresent(DataFormats.Text) || e.Data.GetDataPresent(DataFormats.UnicodeText))
|
||||
{
|
||||
if (Control.ModifierKeys == Keys.Control)
|
||||
if (ModifierKeys == Keys.Control)
|
||||
e.Effect = DragDropEffects.Copy;
|
||||
else
|
||||
e.Effect = DragDropEffects.Move;
|
||||
|
Loading…
Reference in New Issue
Block a user