Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace WindowsFormsApplication1
- {
- public partial class wiimatica : Form
- {
- public wiimatica()
- {
- InitializeComponent();
- }
- private void textBox2_TextChanged(object sender, EventArgs e)
- {
- }
- private void regular_Click(object sender, EventArgs e)
- {
- string verb = opgave.Text;
- string dag = kiestense.Text;
- switch (dag)
- {
- case "simple past":
- if ((verb != null) && (verb != ""))
- {
- vervoegPast(verb);
- }
- break;
- case "simple present":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegPresent(verb);
- }
- break;
- case "simple future":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegFuture(verb);
- }
- break;
- case "present perfect":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegPresentperfect(verb);
- }
- break;
- case "past perfect":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegPastperfect(verb);
- }
- break;
- case "future perfect":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegFutureperfect(verb);
- }
- break;
- case "present progressive":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegPresentprogressive(verb);
- }
- break;
- case "past progressive":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegPastprogressive(verb);
- }
- break;
- case "future progressive":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegFutureprogressive(verb);
- }
- break;
- case "future perfect progressive":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegFutureperfectprogressive(verb);
- }
- break;
- case "present perfect progressive":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegPresentperfectprogressive(verb);
- }
- break;
- case "past perfect progressive":
- if ((verb != null) && (verb != ""))
- {
- box.Visible = true;
- vervoegPastperfectprogressive(verb);
- }
- break;
- case "":
- box.Visible = false;
- break;
- default:
- if ((verb != null) && (verb != ""))
- {
- box.Items.Clear();
- }
- break;
- }
- }
- private void vervoegPast(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I " + verb + "ed");
- box.Items.Add("You " + verb + "ed");
- box.Items.Add("He/She " + verb + "ed");
- box.Items.Add("We " + verb + "ed");
- box.Items.Add("They " + verb + "ed");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I did not " + verb);
- box.Items.Add("You did not " + verb);
- box.Items.Add("He/She did not " + verb);
- box.Items.Add("We did not " + verb);
- box.Items.Add("They did not " + verb);
- }
- private void vervoegPresent(string verb)
- {
- string[] tekens = new [] { "ch", "x", "zz", "ss", "sh", "o" };
- foreach(string teken in tekens)
- string[] consonants = new [] { "zy", "ry", "ty", "py", "qy", "sy", "dy", "fy","gy","hy","jy","ky","ly","my","wy","xy","cy","vy","by","ny" };
- foreach(string consonant in consonants)
- {
- if (verb.EndsWith(teken))
- {
- box.Items.Clear();
- box.Items.Add("I " + verb);
- box.Items.Add("You " + verb);
- box.Items.Add("He/She " + verb + "es");
- box.Items.Add("We " + verb + "y");
- box.Items.Add("They " + verb);
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I do not " + verb);
- box.Items.Add("You do not " + verb);
- box.Items.Add("He/She does not " + verb);
- box.Items.Add("We do not " + verb);
- box.Items.Add("They do not " + verb);
- MessageBox.Show("Verbs ending in 'ss', 'sh' , 'ch' , 'x' , 'zz' and 'o' form the 3rd person singular by adding 'es'");
- break;
- }
- else if (verb.EndsWith(consonant))
- {
- verb.Remove(verb.Length - 1);
- box.Items.Clear();
- box.Items.Add("I " + verb + "y");
- box.Items.Add("You " + verb + "y");
- box.Items.Add("He/She " + verb + "ies");
- box.Items.Add("We " + verb + "y");
- box.Items.Add("They " + verb + "y");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I do not " + verb + "y");
- box.Items.Add("You do not " + verb + "y");
- box.Items.Add("He/She does not " + verb + "y");
- box.Items.Add("We do not " + verb + "y");
- box.Items.Add("They do not " + verb + "y");
- MessageBox.Show("Verbs ending in 'y' preceded by a consonant form the 3rd person singular by chaging 'y' into 'i' and adding 'es'.");
- break;
- }
- else
- box.Items.Clear();
- box.Items.Add("I " + verb);
- box.Items.Add("You " + verb);
- box.Items.Add("He/She " + verb + "s");
- box.Items.Add("We " + verb);
- box.Items.Add("They " + verb);
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I do not " + verb);
- box.Items.Add("You do not " + verb);
- box.Items.Add("He/She does not " + verb);
- box.Items.Add("We do not " + verb);
- box.Items.Add("They do not " + verb);
- }
- }
- private void vervoegFuture(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I will " + verb);
- box.Items.Add("You will " + verb);
- box.Items.Add("He/She will " + verb);
- box.Items.Add("We will " + verb);
- box.Items.Add("They will " + verb);
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I will not " + verb);
- box.Items.Add("You will not " + verb);
- box.Items.Add("He/She will not " + verb);
- box.Items.Add("We will not " + verb);
- box.Items.Add("They will not " + verb);
- }
- private void vervoegPresentperfect(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I have " + verb + "ed");
- box.Items.Add("You have " + verb + "ed");
- box.Items.Add("He/She has " + verb + "ed");
- box.Items.Add("We have " + verb + "ed");
- box.Items.Add("They have " + verb + "ed");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I have not " + verb + "ed");
- box.Items.Add("You have not " + verb + "ed");
- box.Items.Add("He/She has not " + verb + "ed");
- box.Items.Add("We have not " + verb + "ed");
- box.Items.Add("They have not " + verb + "ed");
- }
- private void vervoegFutureperfect(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I will have " + verb + "ed");
- box.Items.Add("You will have " + verb + "ed");
- box.Items.Add("He/She will have " + verb + "ed");
- box.Items.Add("We will have " + verb + "ed");
- box.Items.Add("They will have " + verb + "ed");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I will not have " + verb + "ed");
- box.Items.Add("You will not have" + verb + "ed");
- box.Items.Add("He/She will not have" + verb + "ed");
- box.Items.Add("We will not have" + verb + "ed");
- box.Items.Add("They will not have" + verb + "ed");
- }
- private void vervoegPastperfect(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I had " + verb + "ed");
- box.Items.Add("You had " + verb + "ed");
- box.Items.Add("He/She had " + verb + "ed");
- box.Items.Add("We had " + verb + "ed");
- box.Items.Add("They had " + verb + "ed");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I had not " + verb + "ed");
- box.Items.Add("You had not " + verb + "ed");
- box.Items.Add("He/She had not " + verb + "ed");
- box.Items.Add("We had not " + verb + "ed");
- box.Items.Add("They had not " + verb + "ed");
- }
- private void vervoegPresentprogressive(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I am " + verb + "ing");
- box.Items.Add("You are " + verb + "ing");
- box.Items.Add("He/She is " + verb + "ing");
- box.Items.Add("We are " + verb + "ing");
- box.Items.Add("They are " + verb + "ing");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I am not " + verb + "ing");
- box.Items.Add("You are not " + verb + "ing");
- box.Items.Add("He/She is not " + verb + "ing");
- box.Items.Add("We are not " + verb + "ing");
- box.Items.Add("They are not " + verb + "ing");
- }
- private void vervoegPastprogressive(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I was " + verb + "ing");
- box.Items.Add("You were " + verb + "ing");
- box.Items.Add("He/She was " + verb + "ing");
- box.Items.Add("We were " + verb + "ing");
- box.Items.Add("They were " + verb + "ing");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I was not " + verb + "ing");
- box.Items.Add("You were not " + verb + "ing");
- box.Items.Add("He/She was not " + verb + "ing");
- box.Items.Add("We were not " + verb + "ing");
- box.Items.Add("They were not " + verb + "ing");
- }
- private void vervoegFutureprogressive(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I will be " + verb + "ing");
- box.Items.Add("You will be " + verb + "ing");
- box.Items.Add("He/She will be " + verb + "ing");
- box.Items.Add("We will be " + verb + "ing");
- box.Items.Add("They will be " + verb + "ing");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I will not be " + verb + "ing");
- box.Items.Add("You will not be " + verb + "ing");
- box.Items.Add("He/She will not be " + verb + "ing");
- box.Items.Add("We will not be " + verb + "ing");
- box.Items.Add("They will not be " + verb + "ing");
- }
- private void vervoegFutureperfectprogressive(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I will have been " + verb + "ing");
- box.Items.Add("You will have been " + verb + "ing");
- box.Items.Add("He/She will have been " + verb + "ing");
- box.Items.Add("We will have been " + verb + "ing");
- box.Items.Add("They will have been " + verb + "ing");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I will not have been " + verb + "ing");
- box.Items.Add("You will not have been " + verb + "ing");
- box.Items.Add("He/She will not have been " + verb + "ing");
- box.Items.Add("We will not have been " + verb + "ing");
- box.Items.Add("They will not have been " + verb + "ing");
- }
- private void vervoegPresentperfectprogressive(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I have been " + verb + "ing");
- box.Items.Add("You have been " + verb + "ing");
- box.Items.Add("He/She has been " + verb + "ing");
- box.Items.Add("We have been " + verb + "ing");
- box.Items.Add("They have been " + verb + "ing");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I have not been " + verb + "ing");
- box.Items.Add("You have not been " + verb + "ing");
- box.Items.Add("He/She has not been " + verb + "ing");
- box.Items.Add("We have not been " + verb + "ing");
- box.Items.Add("They have not been " + verb + "ing");
- }
- private void vervoegPastperfectprogressive(string verb)
- {
- box.Items.Clear();
- box.Items.Add("I had been " + verb + "ing");
- box.Items.Add("You had been " + verb + "ing");
- box.Items.Add("He/She had been " + verb + "ing");
- box.Items.Add("We had been " + verb + "ing");
- box.Items.Add("They had been " + verb + "ing");
- box.Items.Add("");
- box.Items.Add("the negative form");
- box.Items.Add("");
- box.Items.Add("I had not been " + verb + "ing");
- box.Items.Add("You had not been " + verb + "ing");
- box.Items.Add("He/She had not been " + verb + "ing");
- box.Items.Add("We had not been " + verb + "ing");
- box.Items.Add("They had not been" + verb + "ing");
- }
- private void usetense_Click(object sender, EventArgs e)
- {
- string dag = kiestense.Text;
- if ((dag == "simple present"))
- {
- use.Visible = true;
- Showsimplepresent();
- }
- else if ((dag == "simple past"))
- {
- use.Visible = true;
- Showsimplepast();
- }
- else if ((dag == "simple future"))
- {
- use.Visible = true;
- Showsimplefuture();
- }
- else if ((dag == "present perfect"))
- {
- use.Visible = true;
- Showpresentperfect();
- }
- else if ((dag == "past perfect"))
- {
- use.Visible = true;
- Showpastperfect();
- }
- else if ((dag == "future perfect"))
- {
- use.Visible = true;
- Showfutureperfect();
- }
- else if ((dag == "present progressive"))
- {
- use.Visible = true;
- Showpresentprogressive();
- }
- else if ((dag == "past progressive"))
- {
- use.Visible = true;
- Showpastprogressive();
- }
- else if ((dag == "future progressive"))
- {
- use.Visible = true;
- Showfutureprogressive();
- }
- else if ((dag == "present perfect progressive"))
- {
- use.Visible = true;
- Showpresentperfectprogressive();
- }
- else if ((dag == "past perfect progressive"))
- {
- use.Visible = true;
- Showpastperfectprogressive();
- }
- else if ((dag == "future perfect progressive"))
- {
- use.Visible = true;
- Showfutureperfectprogressive();
- }
- else if ((dag == ""))
- {
- use.Items.Clear();
- use.Visible = false;
- }
- }
- private void Showsimplepresent()
- {
- use.Items.Clear();
- use.Items.Add("the simple present is used...");
- use.Items.Add("");
- use.Items.Add("1) to express habits and repeated actions.");
- use.Items.Add("");
- use.Items.Add(" A) time expressions such as every day,daily,ever morning,weekly,once a month,on sunday,etc.");
- use.Items.Add(" e.g. John eats French fries (chips) three times a week.");
- use.Items.Add("");
- use.Items.Add(" B) frequency adverbs such as always, usually,generally,often,sometimes,seldom,never...");
- use.Items.Add(" e.g. He usually has a few beers in the evening.");
- use.Items.Add("");
- use.Items.Add("2) to express general truths");
- use.Items.Add(" e.g. London lies on the thames");
- use.Items.Add("");
- use.Items.Add("3) for quicker actions, commentaries on games and what one is doing , demonstrations.");
- use.Items.Add(" and stage directions.");
- use.Items.Add(" e.g. Excuse me, you drop your handkerchief.");
- use.Items.Add("");
- use.Items.Add("4) to tell a story, a play or film that sounds more dramatic in the present than in the usual past form ");
- use.Items.Add(" e.g. I get out of bed and open the door of my bedroom. A man with a gun...");
- use.Items.Add("");
- use.Items.Add("5) to express planned future actions , timetables , arrivals , departures , etc. ");
- use.Items.Add(" e.g. Mum and dad arrive at 6 o'clock tomorrow morning");
- use.Items.Add("");
- use.Items.Add("6) in conditional sentences when there is a future tense in the main clause");
- use.Items.Add(" e.g. If i call him, he will come");
- use.Items.Add("");
- use.Items.Add("7) in time clauses after a conjunction of time e.g. when,after,before,till,until,as soons as,etc.");
- use.Items.Add(" if there is a future tense in the main clause.");
- use.Items.Add(" e.g. I'll wait till he comes.");
- use.Items.Add("");
- use.Items.Add("8) in exclamatory sentences.");
- use.Items.Add(" e.g. Here they are. / there goes our plane. / Here you are.");
- use.Items.Add("");
- use.Items.Add("9) inperformative declarations.");
- use.Items.Add(" e.g. I declare the meeting closed");
- }
- private void Showsimplepast()
- {
- use.Items.Clear();
- use.Items.Add("The simple past is used to...");
- use.Items.Add("");
- use.Items.Add("1) express an action that happened at or during a given time in the past. (= definite past)");
- use.Items.Add("");
- use.Items.Add(" A) in many Dutch contexts the present perfect and the simple past are interchangeable.");
- use.Items.Add(" e.g. I saw sue yesterday.");
- use.Items.Add(" B) but sometimes the present perfect and the simple past are not interchangeable.");
- use.Items.Add(" e.g. Yesterday I played tennis all day.");
- use.Items.Add("2) express habits or regular activities in the past.");
- use.Items.Add(" e.g. he always wore T-shirts in summer.");
- }
- private void Showsimplefuture()
- {
- use.Items.Clear();
- use.Items.Add("The simple future is used...");
- use.Items.Add("");
- use.Items.Add("1) to express something that will certainly happen.");
- use.Items.Add("2) to express reality in the present. e.g. 'we shall go for a walk if the weather is fine.'");
- use.Items.Add("3) to express formal announcements.");
- use.Items.Add("4) with time clauses.");
- use.Items.Add("5) to express the speaker's opinion especially after 'hope, expect , suppose,promise, be afraid of, etc.");
- use.Items.Add("6) to express sudden reactions");
- }
- private void Showpresentperfect()
- {
- use.Items.Clear();
- use.Items.Add("the present perfect is used...");
- use.Items.Add("");
- use.Items.Add("1) for an action begun and finished in a period of time which is unfinished");
- use.Items.Add("2) when the interest is more in the result than in the action itself");
- use.Items.Add("3) for an acion in an indefinite time in the past");
- use.Items.Add("4) for an activity or state unifinished at the moment of speaking.");
- }
- private void Showpastperfect()
- {
- use.Items.Clear();
- use.Items.Add("the past perfect is used...");
- use.Items.Add("");
- use.Items.Add("1) to express an action in the past that happened before another action in the past.");
- use.Items.Add("2) the past perfect is used to express supposition or unreality in the past.");
- use.Items.Add("3) when the time relations can easily be understood from the context the simple past is more common than the past perfect.");
- use.Items.Add("4) a simple past in English often corresponds to a past perfect in Dutch.");
- use.Items.Add("5) to express suppositions and wishes in the past.");
- }
- private void Showfutureperfect()
- {
- use.Items.Clear();
- use.Items.Add("the future perfect is used...");
- use.Items.Add("");
- use.Items.Add("1) for actions completed at a given point in the future");
- use.Items.Add("2) for possibilities and assumptions");
- }
- private void Showpresentprogressive()
- {
- use.Items.Clear();
- use.Items.Add("");
- use.Items.Add("the present progressive is used...");
- use.Items.Add("1) for actions (of limited duration) happening now (real present)");
- use.Items.Add("2) for temporary actions not necessarily happening at the moment of speaking.");
- use.Items.Add("3) for arranged actions in the near future, for immediate plans. the time of action must always be mentioned except with go and come.");
- use.Items.Add("4) with 'always,continually,forever,etc. to express repeated actions that annoy or irritate the speaker.");
- use.Items.Add("5) with one-moment actions the progressive indicates ongoing repetition.");
- use.Items.Add("6) The present progressive may denote an increasing or decreasing activity(an ongoing trend , tendency etc)");
- use.Items.Add("7) ! REMEMBER ! Some verbs are not normally used in progressive forms.");
- }
- private void Showpastprogressive()
- {
- use.Items.Clear();
- use.Items.Add("The past progressive is used...");
- use.Items.Add("");
- use.Items.Add("1) for an action going on at a given time in the past,and or limited duration.");
- use.Items.Add("2) for two actions takinig place and continuing at the same time in the past (parallel actions)");
- use.Items.Add("3) for an action going on in the past when something new happened.");
- use.Items.Add("4)for a gradual development.");
- use.Items.Add("5)with 'always,continually,forever', etc to express repeated past actions that annoy or irritate the speaker");
- }
- private void Showfutureprogressive()
- {
- use.Items.Clear();
- use.Items.Add("the future progressive is used...");
- use.Items.Add("");
- use.Items.Add("1) for actions of limited duration going on at some moment or time in the future");
- use.Items.Add("2) for very polite questions about future activities.");
- use.Items.Add("3) to suggest that something in the future has already been arranged.");
- }
- private void Showpresentperfectprogressive()
- {
- use.Items.Clear();
- use.Items.Add("The present perfect progressive is used...");
- use.Items.Add("");
- use.Items.Add("1) for an action, begun in the past and still in progress at the present moment. this tense is used to emphasize the duration of the action in progress.");
- use.Items.Add("2) for an action begun in the past and only just finished.");
- use.Items.Add("3) Time adjuncts with 'all' are often found with the present perfect progressive.");
- use.Items.Add("4) instead of the presenf perfect progressive with verbs that have no progressive forms.");
- }
- private void Showpastperfectprogressive()
- {
- use.Items.Clear();
- use.Items.Add("The past perfect progressive is used...");
- use.Items.Add("");
- use.Items.Add("1) to express an action that began in the past and continued up to a given time in the past without being interrupted.");
- use.Items.Add("2) in indirect or reported speech to express an idea that in direct speech had been in the present perfect progressive.");
- }
- private void Showfutureperfectprogressive()
- {
- use.Items.Clear();
- use.Items.Add("The future perfect progressive is used to express the duration");
- use.Items.Add("of an action up to a certain time in the future");
- }
- private void reset_Click(object sender, EventArgs e)
- {
- use.Items.Clear();
- box.Items.Clear();
- use.Visible = false;
- box.Visible = false;
- opgave.Text = "";
- kiestense.Text = "";
- }
- }
- }
Add Comment
Please, Sign In to add comment