檔案路徑更改rollback

This commit is contained in:
allen.yan 2025-08-07 12:03:44 +08:00
parent c663bd8ea8
commit be74704be2
10 changed files with 227 additions and 227 deletions

View File

@ -55,7 +55,7 @@ namespace DualScreenDemo
string fileName = (i+1).ToString(); string fileName = (i+1).ToString();
string filePath = Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\button\3.介面\我的最愛_" + fileName + ".png"); string filePath = Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\我的最愛_" + fileName + ".png");
favoriteNumberButton[i].BackgroundImage = Image.FromFile(filePath); favoriteNumberButton[i].BackgroundImage = Image.FromFile(filePath);
favoriteNumberButton[i].BackgroundImageLayout = ImageLayout.Stretch; favoriteNumberButton[i].BackgroundImageLayout = ImageLayout.Stretch;
favoriteNumberButton[i].FlatStyle = FlatStyle.Flat; favoriteNumberButton[i].FlatStyle = FlatStyle.Flat;
@ -87,7 +87,7 @@ namespace DualScreenDemo
Name = "enterFavoriteButton" Name = "enterFavoriteButton"
}; };
ResizeAndPositionButton(enterFavoriteButton, 832, 657, 70, 65); ResizeAndPositionButton(enterFavoriteButton, 832, 657, 70, 65);
enterFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\button\3.介面\我的最愛_確認.png")); enterFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\我的最愛_確認.png"));
enterFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch; enterFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
enterFavoriteButton.FlatStyle = FlatStyle.Flat; enterFavoriteButton.FlatStyle = FlatStyle.Flat;
enterFavoriteButton.FlatAppearance.BorderSize = 0; enterFavoriteButton.FlatAppearance.BorderSize = 0;
@ -102,7 +102,7 @@ namespace DualScreenDemo
Name = "newFavoriteButton" Name = "newFavoriteButton"
}; };
ResizeAndPositionButton(newFavoriteButton, 916, 657, 70, 65); ResizeAndPositionButton(newFavoriteButton, 916, 657, 70, 65);
newFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\button\3.介面\我的最愛_新建.png")); newFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\我的最愛_新建.png"));
newFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch; newFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
newFavoriteButton.FlatStyle = FlatStyle.Flat; newFavoriteButton.FlatStyle = FlatStyle.Flat;
newFavoriteButton.FlatAppearance.BorderSize = 0; newFavoriteButton.FlatAppearance.BorderSize = 0;
@ -117,7 +117,7 @@ namespace DualScreenDemo
Name = "refillFavoriteButton" Name = "refillFavoriteButton"
}; };
ResizeAndPositionButton(refillFavoriteButton, 999, 657, 70, 65); ResizeAndPositionButton(refillFavoriteButton, 999, 657, 70, 65);
refillFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\button\3.介面\我的最愛_重填.png")); refillFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\我的最愛_重填.png"));
refillFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch; refillFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
refillFavoriteButton.FlatStyle = FlatStyle.Flat; refillFavoriteButton.FlatStyle = FlatStyle.Flat;
refillFavoriteButton.FlatAppearance.BorderSize = 0; refillFavoriteButton.FlatAppearance.BorderSize = 0;
@ -132,7 +132,7 @@ namespace DualScreenDemo
Name = "closeFavoriteButton" Name = "closeFavoriteButton"
}; };
ResizeAndPositionButton(closeFavoriteButton, 1083, 657, 70, 65); ResizeAndPositionButton(closeFavoriteButton, 1083, 657, 70, 65);
closeFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\button\3.介面\我的最愛_關閉.png")); closeFavoriteButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\我的最愛_關閉.png"));
closeFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch; closeFavoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
closeFavoriteButton.FlatStyle = FlatStyle.Flat; closeFavoriteButton.FlatStyle = FlatStyle.Flat;
closeFavoriteButton.FlatAppearance.BorderSize = 0; closeFavoriteButton.FlatAppearance.BorderSize = 0;
@ -341,7 +341,7 @@ namespace DualScreenDemo
groupSearchButton.BackgroundImage = groupSearchNormalBackground; groupSearchButton.BackgroundImage = groupSearchNormalBackground;
categorySearchButton.BackgroundImage = categorySearchNormalBackground; categorySearchButton.BackgroundImage = categorySearchNormalBackground;
orderedSongsButton.BackgroundImage = orderedSongsNormalBackground; orderedSongsButton.BackgroundImage = orderedSongsNormalBackground;
myFavoritesButton.BackgroundImage = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_我的最愛(已按).png")); myFavoritesButton.BackgroundImage = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_我的最愛(已按).png"));
promotionsButton.BackgroundImage = promotionsNormalBackground; promotionsButton.BackgroundImage = promotionsNormalBackground;
deliciousFoodButton.BackgroundImage = deliciousFoodNormalBackground; deliciousFoodButton.BackgroundImage = deliciousFoodNormalBackground;
isOnOrderedSongsPage = false; isOnOrderedSongsPage = false;
@ -350,7 +350,7 @@ namespace DualScreenDemo
if (!FavoritePictureBox.Visible) if (!FavoritePictureBox.Visible)
{ {
ShowImageOnFavoritePictureBox(Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\我的最愛\我的最愛_工作區域.jpg")); ShowImageOnFavoritePictureBox(Path.Combine(Application.StartupPath, @"themes\superstar\我的最愛\我的最愛_工作區域.jpg"));
SetFavoritePictureBoxAndButtonsVisibility(true); SetFavoritePictureBoxAndButtonsVisibility(true);
} }
else else

View File

@ -431,7 +431,7 @@ namespace DualScreenDemo
{ {
PictureBox icon = new PictureBox() PictureBox icon = new PictureBox()
{ {
Image = Image.FromFile(Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\button\3.介面\其他符號_人聲.png")), Image = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\其他符號_人聲.png")),
SizeMode = PictureBoxSizeMode.Zoom, SizeMode = PictureBoxSizeMode.Zoom,
Size = new Size(30, 30), Size = new Size(30, 30),
Location = new Point(songX + 5, y + 8) Location = new Point(songX + 5, y + 8)

View File

@ -32,7 +32,7 @@ namespace DualScreenDemo
button.FlatAppearance.MouseDownBackColor = Color.Transparent; button.FlatAppearance.MouseDownBackColor = Color.Transparent;
button.Location = location; button.Location = location;
using (var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(data["ImageSrc"]["path"], imagePath)))) using (var stream = new MemoryStream(File.ReadAllBytes(Path.Combine(Application.StartupPath, imagePath))))
{ {
var image = Image.FromStream(stream); var image = Image.FromStream(stream);
if (image.PixelFormat != System.Drawing.Imaging.PixelFormat.Format32bppArgb) if (image.PixelFormat != System.Drawing.Imaging.PixelFormat.Format32bppArgb)
@ -92,7 +92,7 @@ namespace DualScreenDemo
categorySearchButton.BackgroundImage = categorySearchNormalBackground; categorySearchButton.BackgroundImage = categorySearchNormalBackground;
orderedSongsButton.BackgroundImage = orderedSongsNormalBackground; orderedSongsButton.BackgroundImage = orderedSongsNormalBackground;
myFavoritesButton.BackgroundImage = myFavoritesNormalBackground; myFavoritesButton.BackgroundImage = myFavoritesNormalBackground;
promotionsButton.BackgroundImage = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_優惠活動(已按).png")); promotionsButton.BackgroundImage = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_優惠活動(已按).png"));
deliciousFoodButton.BackgroundImage = deliciousFoodNormalBackground; deliciousFoodButton.BackgroundImage = deliciousFoodNormalBackground;
isOnOrderedSongsPage = false; isOnOrderedSongsPage = false;

View File

@ -14,7 +14,7 @@ namespace DualScreenDemo
try try
{ {
string imagePath = Path.Combine(data["ImageSrc"]["path"], "themes/superstar/button/3.介面/手機點歌QR碼_完整介面.png"); string imagePath = Path.Combine(Application.StartupPath, "themes/superstar/button/3.介面/手機點歌QR碼_完整介面.png");
if (!File.Exists(imagePath)) if (!File.Exists(imagePath))
{ {
Console.WriteLine("Base image not found: " + imagePath); Console.WriteLine("Base image not found: " + imagePath);
@ -82,7 +82,7 @@ namespace DualScreenDemo
ResizeAndPositionControl(pictureBoxQRCode, 975, 442, 226, 274); ResizeAndPositionControl(pictureBoxQRCode, 975, 442, 226, 274);
Bitmap originalImage = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\手機點歌QR碼_完整介面.png")); Bitmap originalImage = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\手機點歌QR碼_完整介面.png"));
//Rectangle closeQRCodeCropArea = new Rectangle(198, 6, 22, 22); //Rectangle closeQRCodeCropArea = new Rectangle(198, 6, 22, 22);

View File

@ -31,9 +31,9 @@ namespace DualScreenDemo
Name = "constructionButton", Name = "constructionButton",
}; };
ConfigureButton(constructionButton, 876, 494, 148, 64, ConfigureButton(constructionButton, 876, 494, 148, 64,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_工地.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_工地.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_工地.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_工地.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_工地.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_工地.png")),
ConstructionButton_Click); ConstructionButton_Click);
this.Controls.Add(constructionButton); this.Controls.Add(constructionButton);
@ -43,9 +43,9 @@ namespace DualScreenDemo
Name = "marketButton", Name = "marketButton",
}; };
ConfigureButton(marketButton, 1037, 495, 148, 63, ConfigureButton(marketButton, 1037, 495, 148, 63,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_市場.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_市場.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_市場.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_市場.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_市場.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_市場.png")),
MarketButton_Click); MarketButton_Click);
this.Controls.Add(marketButton); this.Controls.Add(marketButton);
@ -55,9 +55,9 @@ namespace DualScreenDemo
Name = "drivingButton", Name = "drivingButton",
}; };
ConfigureButton(drivingButton, 876, 570, 148, 63, ConfigureButton(drivingButton, 876, 570, 148, 63,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_開車.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_開車.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_開車.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_開車.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_開車.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_開車.png")),
DrivingButton_Click); DrivingButton_Click);
this.Controls.Add(drivingButton); this.Controls.Add(drivingButton);
@ -67,9 +67,9 @@ namespace DualScreenDemo
Name = "airportButton", Name = "airportButton",
}; };
ConfigureButton(airportButton, 1037, 570, 148, 63, ConfigureButton(airportButton, 1037, 570, 148, 63,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_機場.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_機場.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_機場.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_機場.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_機場.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_機場.png")),
AirportButton_Click); AirportButton_Click);
this.Controls.Add(airportButton); this.Controls.Add(airportButton);
@ -79,9 +79,9 @@ namespace DualScreenDemo
Name = "officeButton", Name = "officeButton",
}; };
ConfigureButton(officeButton, 876, 646, 148, 64, ConfigureButton(officeButton, 876, 646, 148, 64,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_辦公室.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_辦公室.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_辦公室.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_辦公室.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_辦公室.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_辦公室.png")),
OfficeButton_Click); OfficeButton_Click);
this.Controls.Add(officeButton); this.Controls.Add(officeButton);
@ -92,9 +92,9 @@ namespace DualScreenDemo
}; };
ConfigureButton(closeButton, 1036, 646, 150, 63, ConfigureButton(closeButton, 1036, 646, 150, 63,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_關閉.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_關閉.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_關閉.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_關閉.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\場景音效_關閉.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\場景音效_關閉.png")),
CloseButton_Click); CloseButton_Click);
this.Controls.Add(closeButton); this.Controls.Add(closeButton);
} }
@ -110,7 +110,7 @@ namespace DualScreenDemo
if (!pictureBoxSceneSoundEffects.Visible) if (!pictureBoxSceneSoundEffects.Visible)
{ {
ShowImageOnPictureBoxSceneSoundEffects(Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\button\3.介面\場景音效_空白介面.png")); ShowImageOnPictureBoxSceneSoundEffects(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\場景音效_空白介面.png"));
SetPictureBoxSceneSoundEffectsAndButtonsVisibility(true); SetPictureBoxSceneSoundEffectsAndButtonsVisibility(true);
} }
else else

View File

@ -44,70 +44,70 @@ namespace DualScreenDemo
// 同步畫面 服務鈴 // 同步畫面 服務鈴
ConfigureButton(this.syncServiceBellButton, 1240, 17, 161, 161, ConfigureButton(this.syncServiceBellButton, 1240, 17, 161, 161,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_服務鈴.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_服務鈴.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_服務鈴.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_服務鈴.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_服務鈴.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_服務鈴.png")),
//(sender, e) => SendCommandThroughSerialPort("a2 53 a4")); //(sender, e) => SendCommandThroughSerialPort("a2 53 a4"));
(sender,e)=>OnServiceBellButtonClick(sender,e)); (sender,e)=>OnServiceBellButtonClick(sender,e));
ConfigureButton(this.syncCutSongButton, 1218, 195, 205, 56, ConfigureButton(this.syncCutSongButton, 1218, 195, 205, 56,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_切歌.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_切歌.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_切歌.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_切歌.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_切歌.png")), (sender, e) => videoPlayerForm.PlayNextSong()); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_切歌.png")), (sender, e) => videoPlayerForm.PlayNextSong());
ConfigureButton(this.syncReplayButton, 1218, 265, 205, 56, ConfigureButton(this.syncReplayButton, 1218, 265, 205, 56,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_重唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_重唱.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_重唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_重唱.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_重唱.png")), ReplayButton_Click); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_重唱.png")), ReplayButton_Click);
// 有人聲入口位置 // 有人聲入口位置
ConfigureButton(this.syncOriginalSongButton, 1218, 335, 205, 56, ConfigureButton(this.syncOriginalSongButton, 1218, 335, 205, 56,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_原唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_原唱.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_原唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_原唱.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_原唱.png")), (sender,e) => videoPlayerForm.ToggleVocalRemoval()); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_原唱.png")), (sender,e) => videoPlayerForm.ToggleVocalRemoval());
ConfigureButton(this.syncMuteButton, 1218, 406, 205, 55, ConfigureButton(this.syncMuteButton, 1218, 406, 205, 55,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_靜音.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_靜音.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_靜音.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_靜音.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_靜音.png")), MuteUnmuteButton_Click); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_靜音.png")), MuteUnmuteButton_Click);
ConfigureButton(this.syncPauseButton, 1218, 475, 205, 56, ConfigureButton(this.syncPauseButton, 1218, 475, 205, 56,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")), SyncPauseButton_Click); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")), SyncPauseButton_Click);
ConfigureButton(this.syncPlayButton, 1218, 475, 205, 56, ConfigureButton(this.syncPlayButton, 1218, 475, 205, 56,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")), SyncPlayButton_Click); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_暫停.png")), SyncPlayButton_Click);
ConfigureButton(this.syncVolumeUpButton, 1218, 546, 205, 55, ConfigureButton(this.syncVolumeUpButton, 1218, 546, 205, 55,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_音樂+.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_音樂+.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_音樂+.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_音樂+.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_音樂+.png")), null); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_音樂+.png")), null);
this.syncVolumeUpButton.MouseDown += (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("音量 ↑ ","a2 b3 a4"); }; this.syncVolumeUpButton.MouseDown += (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("音量 ↑ ","a2 b3 a4"); };
this.syncVolumeUpButton.MouseUp += (sender, e) => { OverlayForm.MainForm.RedisplayTopRigthLabel(); }; this.syncVolumeUpButton.MouseUp += (sender, e) => { OverlayForm.MainForm.RedisplayTopRigthLabel(); };
ConfigureButton(this.syncVolumeDownButton, 1218, 616, 205, 55, ConfigureButton(this.syncVolumeDownButton, 1218, 616, 205, 55,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_音樂-.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_音樂-.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_音樂-.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_音樂-.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_音樂-.png")), null); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_音樂-.png")), null);
this.syncVolumeDownButton.MouseDown += (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("音量 ↓ ","a2 b4 a4");}; this.syncVolumeDownButton.MouseDown += (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("音量 ↓ ","a2 b4 a4");};
this.syncVolumeDownButton.MouseUp += (sender, e) => { OverlayForm.MainForm.RedisplayTopRigthLabel();}; this.syncVolumeDownButton.MouseUp += (sender, e) => { OverlayForm.MainForm.RedisplayTopRigthLabel();};
ConfigureButton(this.syncMicUpButton, 1218, 686, 205, 56, ConfigureButton(this.syncMicUpButton, 1218, 686, 205, 56,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_麥克風+.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_麥克風+.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_麥克風+.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_麥克風+.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_麥克風+.png")), null); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_麥克風+.png")), null);
this.syncMicUpButton.MouseDown += (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("麥克風 ↑ ","a2 b5 a4");}; this.syncMicUpButton.MouseDown += (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("麥克風 ↑ ","a2 b5 a4");};
this.syncMicUpButton.MouseUp += (sender, e) => { OverlayForm.MainForm.RedisplayTopRigthLabel(); }; this.syncMicUpButton.MouseUp += (sender, e) => { OverlayForm.MainForm.RedisplayTopRigthLabel(); };
ConfigureButton(this.syncMicDownButton, 1218, 756, 205, 56, ConfigureButton(this.syncMicDownButton, 1218, 756, 205, 56,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_麥克風-.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_麥克風-.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_麥克風-.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_麥克風-.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_麥克風-.png")), null); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_麥克風-.png")), null);
this.syncMicDownButton.MouseDown += (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("麥克風 ↓ ","a2 b6 a4");}; this.syncMicDownButton.MouseDown += (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("麥克風 ↓ ","a2 b6 a4");};
this.syncMicDownButton.MouseUp += (sender, e) => { OverlayForm.MainForm.RedisplayTopRigthLabel(); }; this.syncMicDownButton.MouseUp += (sender, e) => { OverlayForm.MainForm.RedisplayTopRigthLabel(); };
@ -116,9 +116,9 @@ namespace DualScreenDemo
ConfigureButton(this.syncCloseButton, 1218, 826, 205, 56, ConfigureButton(this.syncCloseButton, 1218, 826, 205, 56,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_關閉.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_關閉.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_關閉.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_關閉.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\同步畫面_關閉.png")), SyncCloseButton_Click); new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\同步畫面_關閉.png")), SyncCloseButton_Click);

View File

@ -34,9 +34,9 @@ namespace DualScreenDemo
btnTurnOn = new Button { Text = "" }; btnTurnOn = new Button { Text = "" };
ConfigureButton(btnTurnOn, 29, 45, 250, 67, ConfigureButton(btnTurnOn, 29, 45, 250, 67,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_ON-OFF.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_ON-OFF.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_ON-OFF.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_ON-OFF.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_ON-OFF.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_ON-OFF.png")),
null); null);
@ -72,9 +72,9 @@ namespace DualScreenDemo
btnBright = new Button{ Text = "" }; btnBright = new Button{ Text = "" };
ConfigureButton(btnBright, 295, 45, 118, 65, ConfigureButton(btnBright, 295, 45, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_明亮.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_明亮.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_明亮.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_明亮.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_明亮.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_明亮.png")),
null); null);
btnBright.Click += (sender, e) => btnBright.Click += (sender, e) =>
{ {
@ -96,74 +96,74 @@ namespace DualScreenDemo
btnRomantic = new Button{ Text = "" }; btnRomantic = new Button{ Text = "" };
ConfigureButton(btnRomantic, 430, 45, 118, 65, ConfigureButton(btnRomantic, 430, 45, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_浪漫.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_浪漫.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_浪漫.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_浪漫.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_浪漫.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_浪漫.png")),
(sender, e) => SendCommandThroughSerialPort("a2 d7 a4")); (sender, e) => SendCommandThroughSerialPort("a2 d7 a4"));
btnAuto = new Button{ Text = "" }; btnAuto = new Button{ Text = "" };
ConfigureButton(btnAuto, 430, 125, 118, 65, ConfigureButton(btnAuto, 430, 125, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_自動.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_自動.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_自動.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_自動.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_自動.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_自動.png")),
null); null);
btnColorTuning = new Button{ Text = "" }; btnColorTuning = new Button{ Text = "" };
ConfigureButton(btnColorTuning, 430, 203, 118, 65, ConfigureButton(btnColorTuning, 430, 203, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_調色.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_調色.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_調色.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_調色.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_調色.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_調色.png")),
(sender, e) => SendCommandThroughSerialPort("a2 75 a4")); (sender, e) => SendCommandThroughSerialPort("a2 75 a4"));
btnSoft = new Button{ Text = "" }; btnSoft = new Button{ Text = "" };
ConfigureButton(btnSoft, 295, 125, 118, 65, ConfigureButton(btnSoft, 295, 125, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_柔和.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_柔和.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_柔和.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_柔和.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_柔和.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_柔和.png")),
(sender, e) => SendCommandThroughSerialPort("a2 d6 a4")); (sender, e) => SendCommandThroughSerialPort("a2 d6 a4"));
btnDynamic = new Button{ Text = "" }; btnDynamic = new Button{ Text = "" };
ConfigureButton(btnDynamic, 295, 203, 118, 65, ConfigureButton(btnDynamic, 295, 203, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_動感.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_動感.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_動感.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_動感.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_動感.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_動感.png")),
(sender, e) => SendCommandThroughSerialPort("a2 d8 a4")); (sender, e) => SendCommandThroughSerialPort("a2 d8 a4"));
btnDeskLamp = new Button{ Text = "" }; btnDeskLamp = new Button{ Text = "" };
ConfigureButton(btnDeskLamp, 430, 283, 118, 65, ConfigureButton(btnDeskLamp, 430, 283, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_桌燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_桌燈.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_桌燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_桌燈.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_桌燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_桌燈.png")),
(sender, e) => SendCommandThroughSerialPort("a2 fb a4")); (sender, e) => SendCommandThroughSerialPort("a2 fb a4"));
btnStageLight = new Button{ Text = "" }; btnStageLight = new Button{ Text = "" };
ConfigureButton(btnStageLight, 295, 283, 118, 65, ConfigureButton(btnStageLight, 295, 283, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_舞台燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_舞台燈.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_舞台燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_舞台燈.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_舞台燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_舞台燈.png")),
(sender, e) => SendCommandThroughSerialPort("a2 fa a4")); (sender, e) => SendCommandThroughSerialPort("a2 fa a4"));
btnShelfLight = new Button{ Text = "" }; btnShelfLight = new Button{ Text = "" };
ConfigureButton(btnShelfLight, 163, 283, 118, 65, ConfigureButton(btnShelfLight, 163, 283, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_層板燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_層板燈.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_層板燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_層板燈.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_層板燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_層板燈.png")),
(sender, e) => SendCommandThroughSerialPort("a2 f9 a4")); (sender, e) => SendCommandThroughSerialPort("a2 f9 a4"));
btnWallLight = new Button{ Text = "" }; btnWallLight = new Button{ Text = "" };
ConfigureButton(btnWallLight, 29, 283, 118, 65, ConfigureButton(btnWallLight, 29, 283, 118, 65,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_壁燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_壁燈.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_壁燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_壁燈.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\燈光控制_壁燈.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\燈光控制_壁燈.png")),
(sender, e) => SendCommandThroughSerialPort("a2 f8 a4")); (sender, e) => SendCommandThroughSerialPort("a2 f8 a4"));

View File

@ -27,9 +27,9 @@ namespace DualScreenDemo
vodButton = new Button(); vodButton = new Button();
vodButton.Text = ""; vodButton.Text = "";
ConfigureButton(vodButton, xPosition - 119, yPosition + 35, 110, 50, ConfigureButton(vodButton, xPosition - 119, yPosition + 35, 110, 50,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_點播.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_點播.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_點播.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_點播.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_點播.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_點播.png")),
VodButton_Click); VodButton_Click);
vodButton.Visible = false; vodButton.Visible = false;
@ -38,9 +38,9 @@ namespace DualScreenDemo
insertButton = new Button(); insertButton = new Button();
insertButton.Text = ""; insertButton.Text = "";
ConfigureButton(insertButton, xPosition + 12, yPosition + 35, 110, 50, ConfigureButton(insertButton, xPosition + 12, yPosition + 35, 110, 50,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_插播.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_插播.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_插播.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_插播.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_插播.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_插播.png")),
InsertButton_Click); InsertButton_Click);
insertButton.Visible = false; insertButton.Visible = false;
@ -49,9 +49,9 @@ namespace DualScreenDemo
albumButton = new Button(); albumButton = new Button();
albumButton.Text = ""; albumButton.Text = "";
ConfigureButton(albumButton, xPosition + 142, yPosition + 35, 140, 50, ConfigureButton(albumButton, xPosition + 142, yPosition + 35, 140, 50,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_歷年專輯.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_歷年專輯.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_歷年專輯.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_歷年專輯.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_歷年專輯.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_歷年專輯.png")),
AlbumButton_Click); AlbumButton_Click);
albumButton.Visible = false; albumButton.Visible = false;
@ -60,9 +60,9 @@ namespace DualScreenDemo
favoriteButton = new Button(); favoriteButton = new Button();
favoriteButton.Text = ""; favoriteButton.Text = "";
ConfigureButton(favoriteButton, xPosition + 302, yPosition + 35, 140, 50, ConfigureButton(favoriteButton, xPosition + 302, yPosition + 35, 140, 50,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_我的最愛.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_我的最愛.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_我的最愛.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_我的最愛.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_我的最愛.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_我的最愛.png")),
FavoriteButton_Click); FavoriteButton_Click);
@ -86,9 +86,9 @@ namespace DualScreenDemo
vodScreenCloseButton = new Button(); vodScreenCloseButton = new Button();
vodScreenCloseButton.Text = ""; vodScreenCloseButton.Text = "";
ConfigureButton(vodScreenCloseButton, xPosition + 462, yPosition + 35, 110, 50, ConfigureButton(vodScreenCloseButton, xPosition + 462, yPosition + 35, 110, 50,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_關閉.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_關閉.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_關閉.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_關閉.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\3.介面\\歌曲點播_關閉.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\3.介面\\歌曲點播_關閉.png")),
VodScreenCloseButton_Click); VodScreenCloseButton_Click);

View File

@ -470,7 +470,7 @@ namespace DualScreenDemo
{ {
var data = LoadConfigData(); var data = LoadConfigData();
string backgroundImagePath = Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\0.下方選單_主畫面.jpg"); string backgroundImagePath = Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\0.下方選單_主畫面.jpg");
try try
{ {
using (Image originalImage = Image.FromFile(backgroundImagePath)) using (Image originalImage = Image.FromFile(backgroundImagePath))
@ -1020,9 +1020,9 @@ namespace DualScreenDemo
serviceBellButton = new Button { Text = "" }; serviceBellButton = new Button { Text = "" };
ConfigureButton(serviceBellButton, 843, 98, 107, 120, ConfigureButton(serviceBellButton, 843, 98, 107, 120,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_服務鈴(未按).png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_服務鈴(未按).png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_服務鈴(未按).png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_服務鈴(未按).png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_服務鈴(已按).png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_服務鈴(已按).png")),
(sender, e) => OnServiceBellButtonClick(sender, e)); (sender, e) => OnServiceBellButtonClick(sender, e));
@ -1038,72 +1038,72 @@ namespace DualScreenDemo
mobileSongRequestButton = new Button { Text = "" }; mobileSongRequestButton = new Button { Text = "" };
mobileSongRequestButton.Name = "mobileSongRequestButton"; mobileSongRequestButton.Name = "mobileSongRequestButton";
ConfigureButton(mobileSongRequestButton, 1198, 629, 223, 88, ConfigureButton(mobileSongRequestButton, 1198, 629, 223, 88,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_手機點歌.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_手機點歌.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_手機點歌.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_手機點歌.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_手機點歌.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_手機點歌.png")),
MobileSongRequestButton_Click); MobileSongRequestButton_Click);
qieGeButton = new Button { Text = "" }; qieGeButton = new Button { Text = "" };
qieGeButton.Name = "qieGeButton"; qieGeButton.Name = "qieGeButton";
ConfigureButton(qieGeButton, 20, 738, 92, 147, ConfigureButton(qieGeButton, 20, 738, 92, 147,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_切歌.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_切歌.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_切歌.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_切歌.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_切歌.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_切歌.png")),
(sender, e) => videoPlayerForm.PlayNextSong()); (sender, e) => videoPlayerForm.PlayNextSong());
musicUpButton = new Button { Text = "" }; musicUpButton = new Button { Text = "" };
musicUpButton.Name = "musicUpButton"; musicUpButton.Name = "musicUpButton";
ConfigureButton(musicUpButton, 128, 738, 93, 62, ConfigureButton(musicUpButton, 128, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_音樂+.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_音樂+.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_音樂+.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_音樂+.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"] , "themes\\superstar\\button\\1.主類別\\音樂及麥克風icon_音樂++.png")), new Bitmap(Path.Combine(Application.StartupPath , "themes\\superstar\\button\\1.主類別\\音樂及麥克風icon_音樂++.png")),
(sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("音量 ↑", "a2 b3 a4"); }); (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("音量 ↑", "a2 b3 a4"); });
musicDownButton = new Button { Text = "" }; musicDownButton = new Button { Text = "" };
musicDownButton.Name = "musicDownButton"; musicDownButton.Name = "musicDownButton";
ConfigureButton(musicDownButton, 128, 823, 93, 62, ConfigureButton(musicDownButton, 128, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_音樂-.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_音樂-.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_音樂-.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_音樂-.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\音樂及麥克風icon_音樂--.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\音樂及麥克風icon_音樂--.png")),
(sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("音量 ↓", "a2 b4 a4"); }); (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("音量 ↓", "a2 b4 a4"); });
micUpButton = new Button { Text = "" }; micUpButton = new Button { Text = "" };
micUpButton.Name = "micUpButton"; micUpButton.Name = "micUpButton";
ConfigureButton(micUpButton, 238, 738, 93, 62, ConfigureButton(micUpButton, 238, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_麥克風+.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_麥克風+.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_麥克風+.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_麥克風+.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\音樂及麥克風icon_麥克風++.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\音樂及麥克風icon_麥克風++.png")),
(sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("麥克風 ↑", "a2 b5 a4"); }); (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("麥克風 ↑", "a2 b5 a4"); });
micDownButton = new Button { Text = "" }; micDownButton = new Button { Text = "" };
micDownButton.Name = "micDownButton"; micDownButton.Name = "micDownButton";
ConfigureButton(micDownButton, 238, 823, 93, 62, ConfigureButton(micDownButton, 238, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_麥克風-.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_麥克風-.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_麥克風-.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_麥克風-.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\音樂及麥克風icon_麥克風--.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\音樂及麥克風icon_麥克風--.png")),
(sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("麥克風 ↓", "a2 b6 a4"); }); (sender, e) => { OverlayForm.MainForm.ShowTopRightLabel("麥克風 ↓", "a2 b6 a4"); });
originalSongButton = new Button { Text = "" }; originalSongButton = new Button { Text = "" };
originalSongButton.Name = "originalSongButton"; originalSongButton.Name = "originalSongButton";
ConfigureButton(originalSongButton, 347, 738, 93, 62, ConfigureButton(originalSongButton, 347, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_原唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_原唱.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_原唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_原唱.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_原唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_原唱.png")),
OriginalSongButton_Click); OriginalSongButton_Click);
replayButton = new Button { Text = "" }; replayButton = new Button { Text = "" };
replayButton.Name = "replayButton"; replayButton.Name = "replayButton";
ConfigureButton(replayButton, 347, 823, 93, 62, ConfigureButton(replayButton, 347, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_重唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_重唱.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_重唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_重唱.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_重唱.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_重唱.png")),
ReplayButton_Click); ReplayButton_Click);
@ -1111,9 +1111,9 @@ namespace DualScreenDemo
Text = "", Text = "",
Name = "pauseButton" }; Name = "pauseButton" };
ConfigureButton(pauseButton, 456, 738, 93, 62, ConfigureButton(pauseButton, 456, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")),
PauseButton_Click); PauseButton_Click);
@ -1124,144 +1124,144 @@ namespace DualScreenDemo
Visible = false Visible = false
}; };
ConfigureButton(playButton, 456, 738, 93, 62, ConfigureButton(playButton, 456, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_暫停.png")),
PlayButton_Click); PlayButton_Click);
muteButton = new Button { Text = "" }; muteButton = new Button { Text = "" };
muteButton.Name = "muteButton"; muteButton.Name = "muteButton";
ConfigureButton(muteButton, 456, 823, 93, 62, ConfigureButton(muteButton, 456, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_靜音.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_靜音.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_靜音.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_靜音.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_靜音.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_靜音.png")),
MuteUnmuteButton_Click); MuteUnmuteButton_Click);
maleKeyButton = new Button { Text = "" }; maleKeyButton = new Button { Text = "" };
maleKeyButton.Name = "maleKeyButton"; maleKeyButton.Name = "maleKeyButton";
ConfigureButton(maleKeyButton, 564, 738, 93, 62, ConfigureButton(maleKeyButton, 564, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_男調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_男調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"] , "themes\\superstar\\button\\1.主類別\\主類別下方_男調.png")), new Bitmap(Path.Combine(Application.StartupPath , "themes\\superstar\\button\\1.主類別\\主類別下方_男調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_男調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_男調.png")),
MaleKeyButton_Click); MaleKeyButton_Click);
femaleKeyButton = new Button { Text = "" }; femaleKeyButton = new Button { Text = "" };
femaleKeyButton.Name = "femaleKeyButton"; femaleKeyButton.Name = "femaleKeyButton";
ConfigureButton(femaleKeyButton, 565, 823, 93, 62, ConfigureButton(femaleKeyButton, 565, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_女調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_女調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_女調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_女調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_女調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_女調.png")),
FemaleKeyButton_Click); FemaleKeyButton_Click);
standardKeyButton = new Button { Text = "" }; standardKeyButton = new Button { Text = "" };
standardKeyButton.Name = "standardKeyButton"; standardKeyButton.Name = "standardKeyButton";
ConfigureButton(standardKeyButton, 674, 738, 93, 62, ConfigureButton(standardKeyButton, 674, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_標準調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_標準調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_標準調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_標準調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_標準調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_標準調.png")),
StandardKeyButton_Click); StandardKeyButton_Click);
soundEffectButton = new Button { Text = "" }; soundEffectButton = new Button { Text = "" };
soundEffectButton.Name = "soundEffectButton"; soundEffectButton.Name = "soundEffectButton";
ConfigureButton(soundEffectButton, 674, 823, 93, 62, ConfigureButton(soundEffectButton, 674, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_音效.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_音效.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_音效.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_音效.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_音效.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_音效.png")),
SoundEffectButton_Click); SoundEffectButton_Click);
pitchUpButton = new Button { Text = "" }; pitchUpButton = new Button { Text = "" };
pitchUpButton.Name = "pitchUpButton"; pitchUpButton.Name = "pitchUpButton";
ConfigureButton(pitchUpButton, 784, 738, 93, 62, ConfigureButton(pitchUpButton, 784, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_升調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_升調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_升調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_升調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_升調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_升調.png")),
PitchUpButton_Click); PitchUpButton_Click);
pitchDownButton = new Button { Text = "" }; pitchDownButton = new Button { Text = "" };
pitchDownButton.Name = "pitchDownButton"; pitchDownButton.Name = "pitchDownButton";
ConfigureButton(pitchDownButton, 784, 823, 93, 62, ConfigureButton(pitchDownButton, 784, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_降調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_降調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_降調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_降調.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_降調.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_降調.png")),
PitchDownButton_Click); PitchDownButton_Click);
syncScreenButton = new Button { Text = "" }; syncScreenButton = new Button { Text = "" };
syncScreenButton.Name = "syncScreenButton"; syncScreenButton.Name = "syncScreenButton";
ConfigureButton(syncScreenButton, 893, 736, 92, 149, ConfigureButton(syncScreenButton, 893, 736, 92, 149,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_同步畫面.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_同步畫面.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_同步畫面.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_同步畫面.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_同步畫面.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_同步畫面.png")),
SyncScreenButton_Click); SyncScreenButton_Click);
toggleLightButton = new Button { Text = "" }; toggleLightButton = new Button { Text = "" };
toggleLightButton.Name = "toggleLightButton"; toggleLightButton.Name = "toggleLightButton";
ConfigureButton(toggleLightButton, 1002, 736, 92, 149, ConfigureButton(toggleLightButton, 1002, 736, 92, 149,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_燈光控制.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_燈光控制.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_燈光控制.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_燈光控制.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_燈光控制.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_燈光控制.png")),
ToggleLightButton_Click); ToggleLightButton_Click);
btnPreviousPage = new Button { Text = "" }; btnPreviousPage = new Button { Text = "" };
btnPreviousPage.Name = "btnPreviousPageButton"; btnPreviousPage.Name = "btnPreviousPageButton";
ConfigureButton(btnPreviousPage, 1110, 738, 93, 62, ConfigureButton(btnPreviousPage, 1110, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_上一頁.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_上一頁.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_上一頁.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_上一頁.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_上一頁.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_上一頁.png")),
PreviousPageButton_Click); PreviousPageButton_Click);
btnReturn = new Button { Text = "" }; btnReturn = new Button { Text = "" };
btnReturn.Name = "btnReturn"; btnReturn.Name = "btnReturn";
ConfigureButton(btnReturn, 1220, 738, 93, 62, ConfigureButton(btnReturn, 1220, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_退出.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_退出.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_退出.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_退出.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_退出.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_退出.png")),
ShouYeButton_Click); ShouYeButton_Click);
btnNextPage = new Button { Text = "" }; btnNextPage = new Button { Text = "" };
btnNextPage.Name = "btnNextPage"; btnNextPage.Name = "btnNextPage";
ConfigureButton(btnNextPage, 1330, 738, 93, 62, ConfigureButton(btnNextPage, 1330, 738, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_下一頁.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_下一頁.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_下一頁.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_下一頁.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_下一頁.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_下一頁.png")),
NextPageButton_Click); NextPageButton_Click);
btnApplause = new Button { Text = "" }; btnApplause = new Button { Text = "" };
btnApplause.Name = "btnApplause"; btnApplause.Name = "btnApplause";
ConfigureButton(btnApplause, 1110, 823, 93, 62, ConfigureButton(btnApplause, 1110, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"] , "themes\\superstar\\button\\1.主類別\\主類別下方_掌聲.png")), new Bitmap(Path.Combine(Application.StartupPath , "themes\\superstar\\button\\1.主類別\\主類別下方_掌聲.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_掌聲.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_掌聲.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_掌聲.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_掌聲.png")),
ApplauseButton_Click); ApplauseButton_Click);
btnSimplifiedChinese = new Button { Text = "" }; btnSimplifiedChinese = new Button { Text = "" };
btnSimplifiedChinese.Name = "btnSimplifiedChinese"; btnSimplifiedChinese.Name = "btnSimplifiedChinese";
ConfigureButton(btnSimplifiedChinese, 1330, 823, 93, 62, ConfigureButton(btnSimplifiedChinese, 1330, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_簡體.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_簡體.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_簡體.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_簡體.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_簡體.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_簡體.png")),
SimplifiedChineseButton_Click); SimplifiedChineseButton_Click);
btnTraditionalChinese = new Button { Text = "" }; btnTraditionalChinese = new Button { Text = "" };
btnTraditionalChinese.Name = "btnTraditionalChinese"; btnTraditionalChinese.Name = "btnTraditionalChinese";
ConfigureButton(btnTraditionalChinese, 1220, 823, 93, 62, ConfigureButton(btnTraditionalChinese, 1220, 823, 93, 62,
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_繁體.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_繁體.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_繁體.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_繁體.png")),
new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別下方_繁體.png")), new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別下方_繁體.png")),
TraditionalChineseButton_Click); TraditionalChineseButton_Click);
/* 關閉應用程式按鈕*/ /* 關閉應用程式按鈕*/
@ -1281,7 +1281,7 @@ namespace DualScreenDemo
button = new Button { Text = "", Name = buttonName }; button = new Button { Text = "", Name = buttonName };
ResizeAndPositionButton(button, x, y, width, height); ResizeAndPositionButton(button, x, y, width, height);
Rectangle buttonCropArea = new Rectangle(x, y, width, height); Rectangle buttonCropArea = new Rectangle(x, y, width, height);
normalBackground = new Bitmap(Path.Combine(data["ImageSrc"]["path"], imagePath)); normalBackground = new Bitmap(Path.Combine(Application.StartupPath, imagePath));
activeBackground = mouseDownImage.Clone(buttonCropArea, mouseDownImage.PixelFormat); activeBackground = mouseDownImage.Clone(buttonCropArea, mouseDownImage.PixelFormat);
button.BackgroundImage = normalBackground; button.BackgroundImage = normalBackground;
button.BackgroundImageLayout = ImageLayout.Stretch; button.BackgroundImageLayout = ImageLayout.Stretch;
@ -1334,7 +1334,7 @@ namespace DualScreenDemo
this.DoubleBuffered = true; this.DoubleBuffered = true;
this.SuspendLayout(); this.SuspendLayout();
DrawTextOnVodScreenPictureBox(Path.Combine(data["ImageSrc"]["path"], @"themes\superstar\button\3.介面\歌曲點播_空白介面.png"), currentSelectedSong); DrawTextOnVodScreenPictureBox(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\歌曲點播_空白介面.png"), currentSelectedSong);
SetVodScreenPictureBoxAndButtonsVisibility(true); SetVodScreenPictureBoxAndButtonsVisibility(true);
this.ResumeLayout(true); this.ResumeLayout(true);
} }
@ -1415,85 +1415,85 @@ namespace DualScreenDemo
string selectedThemePath = ReadSelectedThemePath(); string selectedThemePath = ReadSelectedThemePath();
string basePath = Path.Combine(data["ImageSrc"]["path"], selectedThemePath); string basePath = Path.Combine(Application.StartupPath, selectedThemePath);
int targetWidth = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; int targetWidth = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
int targetHeight = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height; int targetHeight = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
normalStateImage = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\0.下方選單_主畫面.jpg")); normalStateImage = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\0.下方選單_主畫面.jpg"));
resizedNormalStateImage = ResizeImage(normalStateImage, targetWidth, targetHeight); resizedNormalStateImage = ResizeImage(normalStateImage, targetWidth, targetHeight);
mouseOverImage = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\0.主選單_已按.jpg")); mouseOverImage = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\0.主選單_已按.jpg"));
resizedMouseOverImage = ResizeImage(mouseOverImage, targetWidth, targetHeight); resizedMouseOverImage = ResizeImage(mouseOverImage, targetWidth, targetHeight);
mouseDownImage = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\0.主選單_已按.jpg")); mouseDownImage = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\0.主選單_已按.jpg"));
resizedMouseDownImage = ResizeImage(mouseDownImage, targetWidth, targetHeight); resizedMouseDownImage = ResizeImage(mouseDownImage, targetWidth, targetHeight);
normalStateImageNewSongAlert = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\1.新歌快報_未按.jpg")); normalStateImageNewSongAlert = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\1.新歌快報_未按.jpg"));
resizedNormalStateImageForNewSongAlert = ResizeImage(normalStateImageNewSongAlert, targetWidth, targetHeight); resizedNormalStateImageForNewSongAlert = ResizeImage(normalStateImageNewSongAlert, targetWidth, targetHeight);
mouseOverImageNewSongAlert = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\1.新歌快報_已按.jpg")); mouseOverImageNewSongAlert = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\1.新歌快報_已按.jpg"));
resizedMouseOverImageForNewSongAlert = ResizeImage(mouseOverImageNewSongAlert, targetWidth, targetHeight); resizedMouseOverImageForNewSongAlert = ResizeImage(mouseOverImageNewSongAlert, targetWidth, targetHeight);
mouseDownImageNewSongAlert = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\1.新歌快報_已按.jpg")); mouseDownImageNewSongAlert = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\1.新歌快報_已按.jpg"));
resizedMouseDownImageForNewSongAlert = ResizeImage(mouseDownImageNewSongAlert, targetWidth, targetHeight); resizedMouseDownImageForNewSongAlert = ResizeImage(mouseDownImageNewSongAlert, targetWidth, targetHeight);
normalStateImageArtistQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\3.歌星查詢_未按.jpg")); normalStateImageArtistQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\3.歌星查詢_未按.jpg"));
resizedNormalStateImageForArtistQuery = ResizeImage(normalStateImageArtistQuery, targetWidth, targetHeight); resizedNormalStateImageForArtistQuery = ResizeImage(normalStateImageArtistQuery, targetWidth, targetHeight);
mouseOverImageArtistQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\3.歌星查詢_已按.jpg")); mouseOverImageArtistQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\3.歌星查詢_已按.jpg"));
resizedMouseOverImageForArtistQuery = ResizeImage(mouseOverImageArtistQuery, targetWidth, targetHeight); resizedMouseOverImageForArtistQuery = ResizeImage(mouseOverImageArtistQuery, targetWidth, targetHeight);
mouseDownImageArtistQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\3.歌星查詢_已按.jpg")); mouseDownImageArtistQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\3.歌星查詢_已按.jpg"));
resizedMouseDownImageForArtistQuery = ResizeImage(mouseDownImageArtistQuery, targetWidth, targetHeight); resizedMouseDownImageForArtistQuery = ResizeImage(mouseDownImageArtistQuery, targetWidth, targetHeight);
normalStateImageSongQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"] , "themes\\superstar\\主畫面\\4.歌名查詢_未按.jpg")); normalStateImageSongQuery = new Bitmap(Path.Combine(Application.StartupPath , "themes\\superstar\\主畫面\\4.歌名查詢_未按.jpg"));
resizedNormalStateImageForSongQuery = ResizeImage(normalStateImageSongQuery, targetWidth, targetHeight); resizedNormalStateImageForSongQuery = ResizeImage(normalStateImageSongQuery, targetWidth, targetHeight);
mouseOverImageSongQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\4.歌名查詢_已按.jpg")); mouseOverImageSongQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\4.歌名查詢_已按.jpg"));
resizedMouseOverImageForSongQuery = ResizeImage(mouseOverImageSongQuery, targetWidth, targetHeight); resizedMouseOverImageForSongQuery = ResizeImage(mouseOverImageSongQuery, targetWidth, targetHeight);
mouseDownImageSongQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\4.歌名查詢_已按.jpg")); mouseDownImageSongQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\4.歌名查詢_已按.jpg"));
resizedMouseDownImageForSongQuery = ResizeImage(mouseDownImageSongQuery, targetWidth, targetHeight); resizedMouseDownImageForSongQuery = ResizeImage(mouseDownImageSongQuery, targetWidth, targetHeight);
normalStateImageLanguageQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\5.語別查詢_未按.jpg")); normalStateImageLanguageQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\5.語別查詢_未按.jpg"));
resizedNormalStateImageForLanguageQuery = ResizeImage(normalStateImageLanguageQuery, targetWidth, targetHeight); resizedNormalStateImageForLanguageQuery = ResizeImage(normalStateImageLanguageQuery, targetWidth, targetHeight);
mouseOverImageLanguageQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\5.語別查詢_已按.jpg")); mouseOverImageLanguageQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\5.語別查詢_已按.jpg"));
resizedMouseOverImageForLanguageQuery = ResizeImage(mouseOverImageLanguageQuery, targetWidth, targetHeight); resizedMouseOverImageForLanguageQuery = ResizeImage(mouseOverImageLanguageQuery, targetWidth, targetHeight);
mouseDownImageLanguageQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\5.語別查詢_已按.jpg")); mouseDownImageLanguageQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\5.語別查詢_已按.jpg"));
resizedMouseDownImageForLanguageQuery = ResizeImage(mouseDownImageLanguageQuery, targetWidth, targetHeight); resizedMouseDownImageForLanguageQuery = ResizeImage(mouseDownImageLanguageQuery, targetWidth, targetHeight);
normalStateImageCategoryQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\7.類別查詢_未按.jpg")); normalStateImageCategoryQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\7.類別查詢_未按.jpg"));
resizedNormalStateImageForCategoryQuery = ResizeImage(normalStateImageCategoryQuery, targetWidth, targetHeight); resizedNormalStateImageForCategoryQuery = ResizeImage(normalStateImageCategoryQuery, targetWidth, targetHeight);
mouseOverImageCategoryQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\7.類別查詢_已按.jpg")); mouseOverImageCategoryQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\7.類別查詢_已按.jpg"));
resizedMouseOverImageForCategoryQuery = ResizeImage(mouseOverImageCategoryQuery, targetWidth, targetHeight); resizedMouseOverImageForCategoryQuery = ResizeImage(mouseOverImageCategoryQuery, targetWidth, targetHeight);
mouseDownImageCategoryQuery = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\7.類別查詢_已按.jpg")); mouseDownImageCategoryQuery = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\7.類別查詢_已按.jpg"));
resizedMouseDownImageForCategoryQuery = ResizeImage(mouseDownImageCategoryQuery, targetWidth, targetHeight); resizedMouseDownImageForCategoryQuery = ResizeImage(mouseDownImageCategoryQuery, targetWidth, targetHeight);
normalStateImageForPromotionsAndMenu = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\555021.jpg")); normalStateImageForPromotionsAndMenu = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\555021.jpg"));
resizedNormalStateImageForPromotionsAndMenu = ResizeImage(normalStateImageForPromotionsAndMenu, targetWidth, targetHeight); resizedNormalStateImageForPromotionsAndMenu = ResizeImage(normalStateImageForPromotionsAndMenu, targetWidth, targetHeight);
try try
{ {
string imagePath = Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\選單內介面_同步畫面.jpg"); string imagePath = Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\選單內介面_同步畫面.jpg");
if (File.Exists(imagePath)) if (File.Exists(imagePath))
{ {
@ -1513,17 +1513,17 @@ namespace DualScreenDemo
} }
normalStateImageForSceneSoundEffects = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\555022.jpg")); normalStateImageForSceneSoundEffects = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\555022.jpg"));
resizedNormalStateImageForSceneSoundEffects = ResizeImage(normalStateImageForSceneSoundEffects, targetWidth, targetHeight); resizedNormalStateImageForSceneSoundEffects = ResizeImage(normalStateImageForSceneSoundEffects, targetWidth, targetHeight);
normalStateImageHotSong = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\2.熱門排行_未按.jpg")); normalStateImageHotSong = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\2.熱門排行_未按.jpg"));
resizedNormalStateImageForHotSong = ResizeImage(normalStateImageHotSong, targetWidth, targetHeight); resizedNormalStateImageForHotSong = ResizeImage(normalStateImageHotSong, targetWidth, targetHeight);
mouseDownImageHotSong = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\2.熱門排行_已按.jpg")); mouseDownImageHotSong = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\2.熱門排行_已按.jpg"));
resizedMouseDownImageForHotSong = ResizeImage(mouseDownImageHotSong, targetWidth, targetHeight); resizedMouseDownImageForHotSong = ResizeImage(mouseDownImageHotSong, targetWidth, targetHeight);
normalStateImageForLightControl = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\選單內介面_燈光控制.jpg")); normalStateImageForLightControl = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\選單內介面_燈光控制.jpg"));
resizedNormalStateImageForLightControl = ResizeImage(normalStateImageForLightControl, targetWidth, targetHeight); resizedNormalStateImageForLightControl = ResizeImage(normalStateImageForLightControl, targetWidth, targetHeight);
} }
@ -1668,7 +1668,7 @@ namespace DualScreenDemo
orderedSongsButton.BackgroundImage = orderedSongsNormalBackground; orderedSongsButton.BackgroundImage = orderedSongsNormalBackground;
myFavoritesButton.BackgroundImage = myFavoritesNormalBackground; myFavoritesButton.BackgroundImage = myFavoritesNormalBackground;
promotionsButton.BackgroundImage = promotionsNormalBackground; promotionsButton.BackgroundImage = promotionsNormalBackground;
deliciousFoodButton.BackgroundImage = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_美味菜單(已按).png")); deliciousFoodButton.BackgroundImage = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_美味菜單(已按).png"));
isOnOrderedSongsPage = false; isOnOrderedSongsPage = false;
SetHotSongButtonsVisibility(false); SetHotSongButtonsVisibility(false);
@ -2150,7 +2150,7 @@ namespace DualScreenDemo
try try
{ {
string filePath = Path.Combine(data["ImageSrc"]["path"], "themes", "superstar", "ButtonImages", imageName); string filePath = Path.Combine(Application.StartupPath, "themes", "superstar", "ButtonImages", imageName);
if (File.Exists(filePath)) if (File.Exists(filePath))
{ {
return Image.FromFile(filePath); return Image.FromFile(filePath);
@ -2174,7 +2174,7 @@ namespace DualScreenDemo
try try
{ {
string filePath = Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\主畫面\\選單內介面_送客畫面.jpg"); string filePath = Path.Combine(Application.StartupPath, "themes\\superstar\\主畫面\\選單內介面_送客畫面.jpg");
if (File.Exists(filePath)) if (File.Exists(filePath))
{ {
return Image.FromFile(filePath); return Image.FromFile(filePath);
@ -2226,7 +2226,7 @@ namespace DualScreenDemo
languageSearchButton.BackgroundImage = languageSearchNormalBackground; languageSearchButton.BackgroundImage = languageSearchNormalBackground;
groupSearchButton.BackgroundImage = groupSearchNormalBackground; groupSearchButton.BackgroundImage = groupSearchNormalBackground;
categorySearchButton.BackgroundImage = categorySearchNormalBackground; categorySearchButton.BackgroundImage = categorySearchNormalBackground;
orderedSongsButton.BackgroundImage = new Bitmap(Path.Combine(data["ImageSrc"]["path"], "themes\\superstar\\button\\1.主類別\\主類別上方_已點歌曲(已按).png")); orderedSongsButton.BackgroundImage = new Bitmap(Path.Combine(Application.StartupPath, "themes\\superstar\\button\\1.主類別\\主類別上方_已點歌曲(已按).png"));
myFavoritesButton.BackgroundImage = myFavoritesNormalBackground; myFavoritesButton.BackgroundImage = myFavoritesNormalBackground;
promotionsButton.BackgroundImage = promotionsNormalBackground; promotionsButton.BackgroundImage = promotionsNormalBackground;
deliciousFoodButton.BackgroundImage = deliciousFoodNormalBackground; deliciousFoodButton.BackgroundImage = deliciousFoodNormalBackground;

View File

@ -74,10 +74,10 @@ namespace DualScreenDemo
var configData = LoadConfigData(); var configData = LoadConfigData();
// 取得「注音歌手圖片」的完整路徑 // 取得「注音歌手圖片」的完整路徑
string imagePath = Path.Combine(configData["ImageSrc"]["path"], configData["ImagePaths"]["SongIDSearch"]); string imagePath = Path.Combine(Application.StartupPath, configData["ImagePaths"]["SongIDSearch"]);
// 在 PictureBox 中顯示對應的「注音歌手」圖片 // 在 PictureBox 中顯示對應的「注音歌手」圖片
ShowImageOnPictureBoxSongIDSearch(Path.Combine(configData["ImageSrc"]["path"], imagePath)); ShowImageOnPictureBoxSongIDSearch(Path.Combine(Application.StartupPath, imagePath));
// 鍵盤UI介面顯示設定 // 鍵盤UI介面顯示設定
SetWordCountSongsAndButtonsVisibility(false); SetWordCountSongsAndButtonsVisibility(false);