Example #1
0
    /// <summary>
    /// Changes between single and comparison view.
    /// </summary>
    public void ChangeViewMode()
    {
        SelectorManager.Instance.ResetSelectedObjects();

        if (m_CurrentViewmode == Viewmode.Single)
        {
            m_CurrentViewmode = Viewmode.Comparison;
            SelectorManager.Instance.MaximumSelectableObjects = 3;
        }
        else if (m_CurrentViewmode == Viewmode.Comparison)
        {
            m_CurrentViewmode = Viewmode.Single;
            SelectorManager.Instance.MaximumSelectableObjects = 1;
        }
    }
Example #2
0
 public void setViewmode(Viewmode vm)
 {
     switch (vm)
     {
         case Viewmode.Playlist:
             lvPlaylist.Show();
             videoCanvas.Hide();
             drawingCanvas.Hide();
             backButton.Hide();
             break;
         case Viewmode.Picture:
             drawingCanvas.Show();
             videoCanvas.Hide();
             lvPlaylist.Hide();
             backButton.Show();
             break;
         case Viewmode.Video:
             videoCanvas.Show();
             drawingCanvas.Hide();
             lvPlaylist.Hide();
             backButton.Show();
             break;
     }
 }