public EquivalentPresenter(IEquivalentView window, int userId) : base(window, userId)
 {
     rand  = new Random();
     model = new TranslateModel(userId, "equivalent");
     win.Variant_MouseLeftButtonDown += new EventHandler(VariantMouseLeftDown);
     GenerateContent();
 }
Example #2
0
 public ListeningPresenter(IEquivalentView window, int userId) : base(window, userId)
 {
     rand  = new Random();
     model = new TranslateModel(userId, "listening");
     flag  = false;
     GenerateContent();
 }
Example #3
0
 public ConstructorPresenter(IEquivalentView window, int userId)
 {
     this.window = window;
     borderPresenter = new BorderPresenter(window);
     rand = new Random();
     rightAnswers = new List<int>();
     flag = false;
     userAnswer = new char[1];
     model = new TranslateModel(userId, "constructor");
     window.Window_Closing += new EventHandler(WindowClosing);
     window.Next_MouseLeftButtonDown += new EventHandler(NextMouseLeftDown);
     window.Variant_MouseLeftButtonDown += new EventHandler(VariantMouseLeftDown);
     window.Complete_MouseLeftButtonDown += new EventHandler(CompleteMouseLeftDown);
     GenerateContent();
 }
Example #4
0
 void WindowClosing(object sender, EventArgs e)
 {
     model = null;
     window.Window_Closing -= new EventHandler(WindowClosing);
 }