Esempio 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       = 652;
         _windowRoll  = WindowRoll.RollUp;
         btnView.Text = "^";
         WindowRollEventArgs eventArgs = new WindowRollEventArgs
         {
             WindowRoll = WindowRoll.RollDown
         };
         OnWindowRolled(eventArgs);
     }
 }
Esempio n. 2
0
 protected virtual void OnWindowRolled(WindowRollEventArgs e)
 {
     WindowRolled?.Invoke(this, e);
 }