コード例 #1
0
 private void btnView_Click(object sender, EventArgs e)
 {
     if (_windowRoll == WindowRoll.RollUp)
     {
         Height       = MINIMUM_HEIGHT;
         _windowRoll  = WindowRoll.RollDown;
         btnView.Text = "v";
         WindowRollEventArgs eventArgs = new WindowRollEventArgs
         {
             WindowRoll = WindowRoll.RollUp
         };
         OnWindowRolled(eventArgs);
     }
     else
     {
         Height       = MAXIMUM_HEIGHT;
         _windowRoll  = WindowRoll.RollUp;
         btnView.Text = "^";
         WindowRollEventArgs eventArgs = new WindowRollEventArgs
         {
             WindowRoll = WindowRoll.RollDown
         };
         OnWindowRolled(eventArgs);
     }
 }
コード例 #2
0
 protected virtual void OnWindowRolled(WindowRollEventArgs e)
 {
     WindowRolled?.Invoke(this, e);
 }