Exemple #1
0
 private void SetBorder()
 {
     if (rdLine.Checked)
     {
         mView_Default.Border  = new DevAge.Drawing.RectangleBorder(new DevAge.Drawing.Border(Color.Black, 0), new DevAge.Drawing.Border(Color.Black, 1));
         mView_CheckBox.Border = mView_Default.Border;
         mView_Price.Border    = mView_Default.Border;
         mView_Link.Border     = mView_Default.Border;
     }
     else if (rdNromalBorder.Checked)
     {
         mView_Default.Border  = SourceGrid.Cells.Views.ViewBase.DefaultBorder;
         mView_CheckBox.Border = SourceGrid.Cells.Views.ViewBase.DefaultBorder;
         mView_Price.Border    = SourceGrid.Cells.Views.ViewBase.DefaultBorder;
         mView_Link.Border     = SourceGrid.Cells.Views.ViewBase.DefaultBorder;
     }
     else
     {
         mView_Default.Border  = DevAge.Drawing.RectangleBorder.NoBorder;
         mView_CheckBox.Border = DevAge.Drawing.RectangleBorder.NoBorder;
         mView_Price.Border    = DevAge.Drawing.RectangleBorder.NoBorder;
         mView_Link.Border     = DevAge.Drawing.RectangleBorder.NoBorder;
     }
     grid1.InvalidateCells();
 }