示例#1
0
 private void AllBorderBtn_Click(object sender, EventArgs e)
 {
     BorderCtrl.HasLeft   = true;
     BorderCtrl.HasTop    = true;
     BorderCtrl.HasRight  = true;
     BorderCtrl.HasBottom = true;
     BorderCtrl.Invalidate();
 }
示例#2
0
 private void NoneBordrBtn_Click(object sender, EventArgs e)
 {
     BorderCtrl.HasLeft   = false;
     BorderCtrl.HasTop    = false;
     BorderCtrl.HasRight  = false;
     BorderCtrl.HasBottom = false;
     BorderCtrl.Invalidate();
 }
示例#3
0
 public void Bind(IBorder border)
 {
     if (null != border)
     {
         BorderCtrl.Bind(border);
         DashStyle             = border.DashStyle;
         BorderColor           = border.BorderColor;
         ColorCmb.SelectedItem = border.BorderColor;
     }
 }
示例#4
0
 private void ColorCmb_SelectColorChanged(object sender, Color OldColor, Color NewColor)
 {
     BorderCtrl.BorderColor = NewColor;
     BorderCtrl.Invalidate();
 }