@@ -493,6 +493,17 @@ private void RunPreview()
493
493
previewShutdownEvent . WaitOne ( ) ;
494
494
}
495
495
496
+ string windowTitle = "" ;
497
+
498
+ /// <summary>
499
+ /// Gets or sets text to be displayed in the taskbar window title.
500
+ /// </summary>
501
+ public string WindowTitle
502
+ {
503
+ get { return windowTitle ; }
504
+ set { windowTitle = value ; }
505
+ }
506
+
496
507
private void RunNormal ( )
497
508
{
498
509
Cursor . Hide ( ) ;
@@ -521,7 +532,7 @@ private void RunNormalMultipleWindows()
521
532
primary . TopMost = true ;
522
533
#endif
523
534
primary . FormBorderStyle = FormBorderStyle . None ;
524
- primary . Text = System . Reflection . Assembly . GetExecutingAssembly ( ) . GetName ( ) . Name ;
535
+ primary . Text = WindowTitle ;
525
536
primary . Icon = InvisbleLockScreen . Properties . Resources . icon ;
526
537
527
538
foreach ( Screen screen in Screen . AllScreens )
@@ -575,7 +586,7 @@ private void RunNormalSingleWindow()
575
586
#endif
576
587
form . FormBorderStyle = FormBorderStyle . None ;
577
588
form . StartPosition = FormStartPosition . Manual ;
578
- form . Text = System . Reflection . Assembly . GetExecutingAssembly ( ) . GetName ( ) . Name ;
589
+ form . Text = WindowTitle ;
579
590
form . Icon = InvisbleLockScreen . Properties . Resources . icon ;
580
591
581
592
windows = new WindowCollection ( new Window [ ] { new Window ( this , form ) } ) ;
@@ -597,7 +608,7 @@ private void RunWindowed()
597
608
{
598
609
Form form = new Form ( ) ;
599
610
form . FormBorderStyle = FormBorderStyle . FixedSingle ;
600
- form . Text = System . Reflection . Assembly . GetExecutingAssembly ( ) . GetName ( ) . Name ;
611
+ form . Text = WindowTitle ;
601
612
form . Icon = InvisbleLockScreen . Properties . Resources . icon ;
602
613
form . StartPosition = FormStartPosition . CenterScreen ;
603
614
form . BackColor = Color . Black ;
0 commit comments