SVN r891
SVN-Revision: r891
This commit is contained in:
@@ -146,7 +146,7 @@ namespace Lskj.Main.Control
|
||||
//(sender as Button).BackgroundImageLayout = ImageLayout.Center;
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.White;
|
||||
this.BackColor = Color.FromArgb(240, 240, 240);
|
||||
this.Cursor = Cursors.Hand;
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -171,7 +171,7 @@ namespace Lskj.Main.Control
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.FromArgb(240, 240, 240);
|
||||
this.BackColor = Color.White;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -214,30 +214,4 @@ namespace Lskj.Main.Control
|
||||
System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
int thisWidth = this.Width;
|
||||
int thisHeight = this.Height;
|
||||
int angle = _radius;
|
||||
if (angle > 0)
|
||||
{
|
||||
System.Drawing.Graphics g = CreateGraphics();
|
||||
oPath.AddArc(x, y, angle, angle, 180, 90); // 左上角
|
||||
oPath.AddArc(thisWidth - angle, y, angle, angle, 270, 90); // 右上角
|
||||
oPath.AddArc(thisWidth - angle, thisHeight - angle, angle, angle, 0, 90); // 右下角
|
||||
oPath.AddArc(x, thisHeight - angle, angle, angle, 90, 90); // 左下角
|
||||
oPath.CloseAllFigures();
|
||||
Region = new System.Drawing.Region(oPath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
int thisWi
|
||||
Reference in New Issue
Block a user