/// <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); }
public statsAnalysisControl(mainWindow win) { db = new databaseWrapper(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData).ToString()); gui = win; }
public TapeGUI(mainWindow window) { frameBrush = new SolidBrush(Color.FromArgb(70, 130, 180)); this.window = window; TapeFrame.size = new Size(50, 50); }
static void Main() { mainWindow window = new mainWindow(); Application.Run(window); }