aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/OrganizationsViewVM.cs
blob: 993eb4e78c6b0b185f0fefadfe57788fe2191c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.MachineStudio.Common.Notifications;

namespace Tango.MachineStudio.DB.ViewModels
{
    public class OrganizationsViewVM : DbTableViewModel<Organization>
    {
        public OrganizationsViewVM(INotificationProvider notification) : base(notification)
        {
        }
    }
}
ler handler, object sender, EventArgs e) { this.handler = handler; this.sender = sender; this.e = e; } public void Call() { handler(sender, e); } } Queue<EventCall> eventCalls = new Queue<EventCall>(); public void DelayedRaise(EventHandler handler, object sender, EventArgs e) { if (handler != null) { eventCalls.Enqueue(new EventCall(handler, sender, e)); } } public void RaiseEvents() { while (eventCalls.Count > 0) eventCalls.Dequeue().Call(); } } }