Exemplo n.º 1
0
 private void btnView_Click(object sender, EventArgs e)
 {
     if (_windowRoll == WindowRoll.RollUp)
     {
         Height       = 33;
         _windowRoll  = WindowRoll.RollDown;
         btnView.Text = "v";
         WindowRollEventArgs eventArgs = new WindowRollEventArgs
         {
             WindowRoll = WindowRoll.RollUp
         };
         OnWindowRolled(eventArgs);
     }
     else
     {
         Height       = 134;
         _windowRoll  = WindowRoll.RollUp;
         btnView.Text = "^";
         WindowRollEventArgs eventArgs = new WindowRollEventArgs
         {
             WindowRoll = WindowRoll.RollDown
         };
         OnWindowRolled(eventArgs);
     }
 }
Exemplo n.º 2
0
 public virtual void OnWindowRolled(WindowRollEventArgs e)
 {
     WindowRolled?.Invoke(this, e);
 }