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