Пример #1
0
 private void unblockEdit()
 {
     if (alphapanel == null)
     {
         return;
     }
     SetBackColor(Color.FromArgb(216, 228, 248));
     this.Controls.Remove(alphapanel);
     alphapanel = null;
 }
Пример #2
0
 private void blockEdit()
 {
     if (alphapanel == null)
     {
         int x      = expenseDataGridView.Right;
         int y      = idLabel.Bottom;
         int width  = this.Right - x;
         int height = this.Bottom - y;
         alphapanel          = new AlphaPanel();
         alphapanel.Location = new Point(x, y);
         alphapanel.Size     = new Size(width, height);
         this.Controls.Add(alphapanel);
     }
     SetBackColor(Color.Azure);
     alphapanel.BringToFront();
 }
Пример #3
0
 private void blockEdit()
 {
     if (alphapanel == null)
     {
         int x = dgvVoucher.Right;
         int y = voucherBindingNavigator.Bottom;
         int width;
         if (checkMode)
         {
             width = this.costTextBox.Right - x;            // scroll 和會計科目都可以動
         }
         else
         {
             width = dgvVoucherDetail.Right - x - 20;            // scroll用的到
         }
         int height = this.Bottom - y;
         alphapanel          = new AlphaPanel();
         alphapanel.Location = new Point(x, y);
         alphapanel.Size     = new Size(width, height);
         this.Controls.Add(alphapanel);
     }
     SetBackColor(Color.Azure);
     alphapanel.BringToFront();
 }