public LanguageChangesForm(ProgramVersion oldVersion) { InitializeComponent(); if (oldVersion < new ProgramVersion("2.5.5")) { richTextBox1.Text += "\n\n\n"; richTextBox1.Text += "Version 2.5.5:\n"; richTextBox1.Text += "* Removed # infront of all the keywords, to make the code more clean.\n"; richTextBox1.Text += "* The keyword #Invoke is now called InvokeSync\n"; richTextBox1.Text += "* The keyword #trigger is now called Trigger (note: uppercase)\n"; richTextBox1.Text += "\n"; richTextBox1.Text += "Existing code can quickly be modified to fit theese changes, if you use the find and replace feature (ctrl+F)\n"; richTextBox1.Text += "\n"; richTextBox1.Text += "I usually try to refrain from changeing the language in a way so that current code can become invalid, "; richTextBox1.Text += "but in this case, I have only ever recived complaints about the #'s, and I didn't get any negative feedback when I warned about "; richTextBox1.Text += "the change in the project thread on mapster (see the about box). I apologize for the inconvinience this "; richTextBox1.Text += "leads to, and hope you agree that the change is for the better."; } }
private void Form1_Load(object sender, EventArgs e) { Location = Options.General.FormPos; Size = Options.General.FormSize; WindowState = Options.General.FormMaximized ? FormWindowState.Maximized : FormWindowState.Normal; isLoaded = true; ProgramVersion lastVersion = new ProgramVersion(Options.General.LastVersion); if (!Options.CreatedNew && LanguageChangesForm.HasChanges(lastVersion)) new LanguageChangesForm(lastVersion).Show(this); if (Options.General.LastVersion != Application.ProductVersion) new Change_log_form().Show(this); Options.General.LastVersion = Application.ProductVersion; //new Dialog_Creator.TestForm().Show(); }
public static bool HasChanges(ProgramVersion version) { return(version < new ProgramVersion("2.5.5")); }
public static bool HasChanges(ProgramVersion version) { return version < new ProgramVersion("2.5.5"); }