Exemplo n.º 1
0
        /// <summary>
        /// Shows the application about dialog
        /// </summary>
        /// <param name="owner">Handle of the window which hosts this dialog</param>
        /// <param name="applicationName">Name of the host application</param>
        /// <param name="applicationVersion">Version of the host application</param>
        /// <param name="compileDate">Date of the compilation</param>
        /// <param name="copyrightInfo">The copyright info shown in the bottom area of the dialog</param>
        /// <param name="additionalInfo">Used for additional information such as credits</param>
        public void initDialog(mainWindow owner, string applicationName, string applicationVersion, string compileDate, string copyrightInfo, string additionalInfo)
        {
            //Display program name
            appNameLabel.Text = applicationName;

            //Display program version
            appVersionLabel.Text = "Version: " + applicationVersion;

            //Display program compile date
            compileDateLabel.Text = "Compile date: " + compileDate;

            //Display copyright information
            copyrightLabel.Text = copyrightInfo;

            //Display other info
            infoLabel.Text = additionalInfo;

            //Resize dialog according to the quantity of text
            this.Height            = (int)(owner.xScale * 132 + infoLabel.Height);
            compileDateLabel.Width = (int)(150 * owner.xScale);

            //Display a dialog
            this.ShowDialog(owner);
        }
Exemplo n.º 2
0
 public statsAnalysisControl(mainWindow win)
 {
     db = new databaseWrapper(Environment.GetFolderPath(
                                  Environment.SpecialFolder.ApplicationData).ToString());
     gui = win;
 }
Exemplo n.º 3
0
 public TapeGUI(mainWindow window)
 {
     frameBrush     = new SolidBrush(Color.FromArgb(70, 130, 180));
     this.window    = window;
     TapeFrame.size = new Size(50, 50);
 }
Exemplo n.º 4
0
        static void Main()
        {
            mainWindow window = new mainWindow();

            Application.Run(window);
        }