Exemple #1
0
 public EditForm(ServiceW serviceW)
 {
     InitializeComponent();
     Database.masterEntities entities = new Database.masterEntities();
     newServis            = entities.Service.Find(serviceW.ID);
     mainGrid.DataContext = newServis;
     base.Title           = "Редактиравть";
     base.btSave.Content  = "Edit";
 }
Exemple #2
0
        public SerivceController()
        {
            ServiceWs = new List <ServiceW>();
            Database.masterEntities entities = new Database.masterEntities();
            List <Database.Service> services = entities.Service.ToList();


            services = entities.Service.ToList();


            foreach (var item in services)
            {
                ServiceW serviceW = new ServiceW(item);
                ServiceWs.Add(serviceW);
            }
        }