2509021737
手寫板清除問題修正 點歌對話框遮罩問題修正 跑馬燈流程,參數調整
This commit is contained in:
parent
6d35e04361
commit
237e9f6c49
@ -327,14 +327,14 @@ namespace OverlayFormObj
|
|||||||
this.screenHeight = Screen.PrimaryScreen.Bounds.Height;
|
this.screenHeight = Screen.PrimaryScreen.Bounds.Height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.SuspendLayout();
|
||||||
marqueeXPos = this.Width;
|
marqueeXPos = this.Width;
|
||||||
marqueeXPosSecondLine = 7 * this.Width / 8;
|
marqueeXPosSecondLine = 7 * this.Width / 8;
|
||||||
marqueeXPosThirdLine = this.Width;
|
marqueeXPosThirdLine = this.Width;
|
||||||
|
this.ResumeLayout();
|
||||||
|
|
||||||
marqueeTimer = new System.Windows.Forms.Timer();
|
marqueeTimer = new System.Windows.Forms.Timer();
|
||||||
marqueeTimer.Interval = 20;
|
marqueeTimer.Interval = 40;
|
||||||
marqueeTimer.Tick += MarqueeTimer_Tick;
|
marqueeTimer.Tick += MarqueeTimer_Tick;
|
||||||
marqueeTimer.Start();
|
marqueeTimer.Start();
|
||||||
|
|
||||||
|
@ -24,16 +24,16 @@ namespace DualScreenDemo
|
|||||||
|
|
||||||
int[,] coords = new int[,]
|
int[,] coords = new int[,]
|
||||||
{
|
{
|
||||||
{784, 508, 70, 65},
|
{784, 488, 70, 65},
|
||||||
{868, 508, 70, 65},
|
{868, 488, 70, 65},
|
||||||
{952, 508, 70, 65},
|
{952, 488, 70, 65},
|
||||||
{1036, 508, 70, 65},
|
{1036, 488, 70, 65},
|
||||||
{1120, 508, 70, 65},
|
{1120, 488, 70, 65},
|
||||||
{784, 580, 70, 65},
|
{784, 560, 70, 65},
|
||||||
{868, 580, 70, 65},
|
{868, 560, 70, 65},
|
||||||
{952, 580, 70, 65},
|
{952, 560, 70, 65},
|
||||||
{1036, 580, 70, 65},
|
{1036, 560, 70, 65},
|
||||||
{1120, 580, 70, 65}
|
{1120, 560, 70, 65}
|
||||||
};
|
};
|
||||||
|
|
||||||
int screenW = Screen.PrimaryScreen.Bounds.Width;
|
int screenW = Screen.PrimaryScreen.Bounds.Width;
|
||||||
@ -86,7 +86,7 @@ namespace DualScreenDemo
|
|||||||
{
|
{
|
||||||
Name = "enterFavoriteButton"
|
Name = "enterFavoriteButton"
|
||||||
};
|
};
|
||||||
ResizeAndPositionButton(enterFavoriteButton, 822, 657, 70, 65);
|
ResizeAndPositionButton(enterFavoriteButton, 822, 637, 70, 65);
|
||||||
enterFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(serverPath, data["Favorite"]["Enter"]));
|
enterFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(serverPath, data["Favorite"]["Enter"]));
|
||||||
enterFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
|
enterFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
|
||||||
enterFavoriteButton.FlatStyle = FlatStyle.Flat;
|
enterFavoriteButton.FlatStyle = FlatStyle.Flat;
|
||||||
@ -101,7 +101,7 @@ namespace DualScreenDemo
|
|||||||
{
|
{
|
||||||
Name = "newFavoriteButton"
|
Name = "newFavoriteButton"
|
||||||
};
|
};
|
||||||
ResizeAndPositionButton(newFavoriteButton, 906, 657, 70, 65);
|
ResizeAndPositionButton(newFavoriteButton, 906, 637, 70, 65);
|
||||||
newFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(serverPath, data["Favorite"]["New"]));
|
newFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(serverPath, data["Favorite"]["New"]));
|
||||||
newFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
|
newFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
|
||||||
newFavoriteButton.FlatStyle = FlatStyle.Flat;
|
newFavoriteButton.FlatStyle = FlatStyle.Flat;
|
||||||
@ -116,7 +116,7 @@ namespace DualScreenDemo
|
|||||||
{
|
{
|
||||||
Name = "refillFavoriteButton"
|
Name = "refillFavoriteButton"
|
||||||
};
|
};
|
||||||
ResizeAndPositionButton(refillFavoriteButton, 989, 657, 70, 65);
|
ResizeAndPositionButton(refillFavoriteButton, 989, 637, 70, 65);
|
||||||
refillFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(serverPath, data["Favorite"]["Refill"]));
|
refillFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(serverPath, data["Favorite"]["Refill"]));
|
||||||
refillFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
|
refillFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
|
||||||
refillFavoriteButton.FlatStyle = FlatStyle.Flat;
|
refillFavoriteButton.FlatStyle = FlatStyle.Flat;
|
||||||
@ -131,7 +131,7 @@ namespace DualScreenDemo
|
|||||||
{
|
{
|
||||||
Name = "closeFavoriteButton"
|
Name = "closeFavoriteButton"
|
||||||
};
|
};
|
||||||
ResizeAndPositionButton(closeFavoriteButton, 1073, 657, 70, 65);
|
ResizeAndPositionButton(closeFavoriteButton, 1073, 637, 70, 65);
|
||||||
closeFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(serverPath, data["Favorite"]["Close"]));
|
closeFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(serverPath, data["Favorite"]["Close"]));
|
||||||
closeFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
|
closeFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
|
||||||
closeFavoriteButton.FlatStyle = FlatStyle.Flat;
|
closeFavoriteButton.FlatStyle = FlatStyle.Flat;
|
||||||
@ -372,7 +372,7 @@ namespace DualScreenDemo
|
|||||||
FavoritePictureBox.Image = image;
|
FavoritePictureBox.Image = image;
|
||||||
|
|
||||||
// 設定 PictureBox 的大小與位置(依你的需要調整)
|
// 設定 PictureBox 的大小與位置(依你的需要調整)
|
||||||
ResizeAndPositionPictureBox(FavoritePictureBox, 773, 380, (int)(image.Width * 0.8f) , (int)(image.Height * 0.8f));
|
ResizeAndPositionPictureBox(FavoritePictureBox, 773, 355, (int)(image.Width * 0.8f) , (int)(image.Height * 0.8f));
|
||||||
|
|
||||||
FavoritePictureBox.Visible = true;
|
FavoritePictureBox.Visible = true;
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,8 @@ namespace DualScreenDemo
|
|||||||
VodScreenCloseButton_Click);
|
VodScreenCloseButton_Click);
|
||||||
|
|
||||||
|
|
||||||
|
overlayPanel.Size = Screen.PrimaryScreen.Bounds.Size;
|
||||||
|
|
||||||
this.Controls.Add(vodButton);
|
this.Controls.Add(vodButton);
|
||||||
this.Controls.Add(insertButton);
|
this.Controls.Add(insertButton);
|
||||||
this.Controls.Add(albumButton);
|
this.Controls.Add(albumButton);
|
||||||
|
@ -2082,7 +2082,7 @@ namespace DualScreenDemo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
totalPages = (int)Math.Ceiling((double)List.Count / multiPagePanel.itemsPerPage);
|
totalPages = (int)Math.Ceiling((double)List.Count / itemsPerPage);
|
||||||
index = List.FindIndex(song => song.GetState() == PlayState.Playing);
|
index = List.FindIndex(song => song.GetState() == PlayState.Playing);
|
||||||
int page = 0;
|
int page = 0;
|
||||||
if ((index + 1) > multiPagePanel.itemsPerPage) page = Math.Abs((index + 1) / multiPagePanel.itemsPerPage);
|
if ((index + 1) > multiPagePanel.itemsPerPage) page = Math.Abs((index + 1) / multiPagePanel.itemsPerPage);
|
||||||
|
@ -204,7 +204,7 @@ namespace DualScreenDemo
|
|||||||
|
|
||||||
private void ClearButtonHandWritingSingers_Click(object sender, EventArgs e)
|
private void ClearButtonHandWritingSingers_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.Controls.Contains(handWritingPanelForSingers) && inkOverlayForSingers != null)
|
if (pictureBoxHandWritingSingers.Controls.Contains(handWritingPanelForSingers) && inkOverlayForSingers != null)
|
||||||
{
|
{
|
||||||
inkOverlayForSingers.Ink.DeleteStrokes();
|
inkOverlayForSingers.Ink.DeleteStrokes();
|
||||||
handWritingPanelForSingers.Invalidate();
|
handWritingPanelForSingers.Invalidate();
|
||||||
@ -213,12 +213,12 @@ namespace DualScreenDemo
|
|||||||
private void CloseButtonForSingers_Click(object sender, EventArgs e)
|
private void CloseButtonForSingers_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
this.SuspendLayout();
|
pictureBoxHandWritingSingers.SuspendLayout();
|
||||||
|
|
||||||
SetHandWritingForSingersAndButtonsVisibility(false);
|
SetHandWritingForSingersAndButtonsVisibility(false);
|
||||||
handWritingSearchButton.BackgroundImage = handWritingSearchNormalBackground;
|
handWritingSearchButton.BackgroundImage = handWritingSearchNormalBackground;
|
||||||
FindHandwritingSingers();
|
FindHandwritingSingers();
|
||||||
this.ResumeLayout();
|
pictureBoxHandWritingSingers.ResumeLayout();
|
||||||
}
|
}
|
||||||
private void FindHandwritingSingers()
|
private void FindHandwritingSingers()
|
||||||
{
|
{
|
||||||
|
@ -210,7 +210,7 @@ namespace DualScreenDemo
|
|||||||
}
|
}
|
||||||
private void ClearButtonHandWritingSongs_Click(object sender, EventArgs e)
|
private void ClearButtonHandWritingSongs_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.Controls.Contains(handWritingPanelForSongs) && inkOverlayForSongs != null)
|
if (pictureBoxHandWritingSongs.Controls.Contains(handWritingPanelForSongs) && inkOverlayForSongs != null)
|
||||||
{
|
{
|
||||||
inkOverlayForSongs.Ink.DeleteStrokes();
|
inkOverlayForSongs.Ink.DeleteStrokes();
|
||||||
handWritingPanelForSongs.Invalidate();
|
handWritingPanelForSongs.Invalidate();
|
||||||
@ -219,11 +219,11 @@ namespace DualScreenDemo
|
|||||||
private void CloseButtonForSongs_Click(object sender, EventArgs e)
|
private void CloseButtonForSongs_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
this.SuspendLayout();
|
pictureBoxHandWritingSongs.SuspendLayout();
|
||||||
handWritingSearchSongButton.BackgroundImage = handWritingSearchSongNormalBackground;
|
handWritingSearchSongButton.BackgroundImage = handWritingSearchSongNormalBackground;
|
||||||
SetHandWritingForSongsAndButtonsVisibility(false);
|
SetHandWritingForSongsAndButtonsVisibility(false);
|
||||||
FindHandwritingSongs();
|
FindHandwritingSongs();
|
||||||
this.ResumeLayout();
|
pictureBoxHandWritingSongs.ResumeLayout();
|
||||||
}
|
}
|
||||||
private void FindHandwritingSongs()
|
private void FindHandwritingSongs()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user