Example #1
0
 public AboutBox(RollingStoneBase stone)
 {
     window = new AboutWindow(stone);
     window.TopMostWindow = true;
     window.KeyDown      += new System.Windows.Forms.KeyEventHandler(window_KeyDown);
     window.MouseClick   += new System.Windows.Forms.MouseEventHandler(window_MouseClick);
 }
Example #2
0
 public void Show(RollingStoneBase stone)
 {
     if (stone != null)
     {
     }
     Show();
 }
Example #3
0
        public AboutWindow(RollingStoneBase stone)
            : base()
        {
            this.stone = stone;

            if (!string.IsNullOrEmpty(GlobalSettings.AboutStoneName))
            {
                if (FileOperations.FileExists(GlobalSettings.AboutStoneName))
                {
                    background = FastBitmap.FromFile(FileOperations.StripFileName(GlobalSettings.AboutStoneName));
                }
            }

            if (background == null)
            {
                background = NativeThemeManager.LoadBitmap("WindowBackground.png");
            }


            this.Width           = background.Width + 16;
            this.Height          = background.Height + 16;
            this.Alpha           = 230;
            this.ColorKey        = ColorUtils.WhiteKey;
            Canvas.SmoothingMode = SmoothingMode.HighQuality;
            this.Canvas.DrawImage(background, 8, 8, background.Width, background.Height);

            if (!string.IsNullOrEmpty(stone.StoneAuthor))
            {
                this.author = "Author: " + stone.StoneAuthor;
            }
            this.description = stone.StoneDescription;
            this.stoneIcon   = stone.StoneIcon;

            versionInfo = "Version: " + stone.StoneVersion;
            copyright   = stone.StoneCopyright;
        }