Ejemplo n.º 1
0
 private void HandleSetFirst()
 {
     if (CurrentView != null && CurrentView.ChangeOrderAllowed &&
         CurrentView.SetFileOrderFirst())
     {
         SetData(m_gameFile);
         FileOrderChanged?.Invoke(this, EventArgs.Empty);
     }
 }
Ejemplo n.º 2
0
        private void SetFilePriority(bool up)
        {
            bool success = false;

            if (CurrentView != null && CurrentView.ChangeOrderAllowed)
            {
                if (up)
                {
                    success = CurrentView.MoveFileOrderUp();
                }
                else
                {
                    success = CurrentView.MoveFileOrderDown();
                }
            }

            if (success)
            {
                SetData(m_gameFile);
                FileOrderChanged?.Invoke(this, EventArgs.Empty);
            }
        }