Beispiel #1
0
 public LifeAlgoritm(int size, Iview view)
 {
     this.size          = size;
     this.matrix        = new int[size, size];
     view.ResetEvent   += new Action(CreateMatrix);
     view.TurnFinished += new Action(TurnFinishedMethood);
     view.CreateEvent  += new Action(CreateMatrix);
 }
Beispiel #2
0
 /// <summary>
 /// A method that allows you to unsubscribe an object that is no longer needed from events, so that there are no conflicts of events when using a new object.
 /// </summary>
 /// <param name="view"></param>
 public void Unsubscribe(Iview view)
 {
     try
     {
         view.ResetEvent   -= new Action(CreateMatrix);
         view.TurnFinished -= new Action(TurnFinishedMethood);
         view.CreateEvent  -= new Action(CreateMatrix);
     }
     catch { }
 }
Beispiel #3
0
 public GetData(Imodel model, Iview view) : base(model, view) { }
Beispiel #4
0
 public LogIn(Imodel model, Iview view) : base(model, view) { }
Beispiel #5
0
 public RemoveProduct(Imodel model, Iview view) : base(model, view) { }
Beispiel #6
0
 public Acommand(Imodel model , Iview view) 
 {
     m_model = model;
     m_view = view;
 }
Beispiel #7
0
 public CancelFriend(Imodel model, Iview view) : base(model, view) { }
Beispiel #8
0
 public AddUser(Imodel model, Iview view) : base(model, view) { }
Beispiel #9
0
 public MakeFriend(Imodel model, Iview view) : base(model, view) { }
Beispiel #10
0
 public RemoveUser(Imodel model, Iview view) : base(model, view) { }
Beispiel #11
0
 public void SetView(Iview view)
 {
     m_view = view;
 }
Beispiel #12
0
 public AddProduct(Imodel model, Iview view) : base(model, view) { }