Exemplo n.º 1
0
 /// <summary>
 /// This function is in charge of moving the ClassesPanel off of the screen when a class is clicked.
 /// </summary>
 private void SwitchToResourcesPanel()
 {
     while (ClassesPanel.Location.X + ClassesPanel.Size.Width > 50)
     {
         ClassesPanel.Invoke((NoArgDelegate)MoveLeft);
         Thread.Sleep(1000 / FRAMESPERSEC);
     }
     ClassesPanel.Invoke((NoArgDelegate)ClassesPanel.Hide);
 }
Exemplo n.º 2
0
 /// <summary>
 /// This function takes care of transitioning from The Resources View to the Classes View when the top left Arrow is clicked.
 /// It also clears out the CurrentResources.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ArrowPanel_Click(object sender, EventArgs e)
 {
     if (ClassView)
     {
         return;
     }
     else
     {
         AddFilePanel.Hide();
         AddLinkPanel.Hide();
         CurrentPage            = 0;
         CurrentClassLabel.Text = "";
         DeleteSempahore.WaitOne();
         ClassView = true;
         CurrentResources.Clear(); //Throw away the resources because the class is changing.
         ClassesPanel.Location = new Point(136, 150);
         ClassesPanel.BringToFront();
         ClassesPanel.Show();
         ResourcePanel.Hide();
     }
 }