調整標籤樣式
This commit is contained in:
parent
6079ddd2a6
commit
a4940126aa
@ -10,7 +10,7 @@ namespace DualScreenDemo
|
|||||||
|
|
||||||
private void InitializeButton(ref Button button, string buttonText, int x, int y, int width, int height, Rectangle cropArea, Image normalBackground, out Bitmap normalBackgroundOut, Image activeBackground, out Bitmap activeBackgroundOut, EventHandler clickEventHandler)
|
private void InitializeButton(ref Button button, string buttonText, int x, int y, int width, int height, Rectangle cropArea, Image normalBackground, out Bitmap normalBackgroundOut, Image activeBackground, out Bitmap activeBackgroundOut, EventHandler clickEventHandler)
|
||||||
{
|
{
|
||||||
button = new Button { Text = buttonText, Visible = false };
|
button = new Button { Text = "", Visible = false };
|
||||||
ResizeAndPositionButton(button, x, y, width, height);
|
ResizeAndPositionButton(button, x, y, width, height);
|
||||||
normalBackgroundOut = new Bitmap(normalBackground).Clone(cropArea, normalBackground.PixelFormat);
|
normalBackgroundOut = new Bitmap(normalBackground).Clone(cropArea, normalBackground.PixelFormat);
|
||||||
activeBackgroundOut = new Bitmap(activeBackground).Clone(cropArea, activeBackground.PixelFormat);
|
activeBackgroundOut = new Bitmap(activeBackground).Clone(cropArea, activeBackground.PixelFormat);
|
||||||
|
@ -246,7 +246,7 @@ namespace DualScreenDemo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 我的最愛新增
|
||||||
private void NewFavoriteButton_Click(object sender, EventArgs e)
|
private void NewFavoriteButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (mobileNumber.StartsWith("09") && mobileNumber.Length == 10)
|
if (mobileNumber.StartsWith("09") && mobileNumber.Length == 10)
|
||||||
|
@ -169,6 +169,7 @@ namespace DualScreenDemo
|
|||||||
private Dictionary<Control, (Point Location, bool Visible)> initialControlStates = new Dictionary<Control, (Point Location, bool Visible)>();
|
private Dictionary<Control, (Point Location, bool Visible)> initialControlStates = new Dictionary<Control, (Point Location, bool Visible)>();
|
||||||
|
|
||||||
private Panel sendOffPanel;
|
private Panel sendOffPanel;
|
||||||
|
|
||||||
|
|
||||||
private static Bitmap normalStateImageHotSong;
|
private static Bitmap normalStateImageHotSong;
|
||||||
private static Bitmap mouseDownImageHotSong;
|
private static Bitmap mouseDownImageHotSong;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user