public NotePage(TabPage page, NoteSheets form) : base() { InitializeComponent(); PMyPage = page; PMyForm = form; Sheet sheet = (Sheet)page.Tag; SheetText.Text = sheet.content; SheetTitle.Text = sheet.title; }
public void MainFormLoad(object sender, EventArgs e) { hold(); helpProvider1.HelpNamespace = "https://github.com/ASHTeam/ash-aio-2/wiki"; helpProvider1.SetShowHelp(this, true); Checker checker = new Checker(); if (checker.getdata() == 0 && checker.ver > GetCurrentVersion()) { checker.ShowDialog(); statusLabel.Text = "Update available."; } else if (checker.getdata() == 0 && checker.ver < GetCurrentVersion()) { MessageBox.Show("Development Mode Warning: You are using a version of AshAIO that is not available to the public yet. This version can contain lots of bugs/unfinished content, so please use caution."); statusLabel.Text = "Ready - AshAIO Development Mode"; } this.Text = "AshAIO (version " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() + ")"; notes = new NoteSheets(); }