Ky So 2 years ago
parent
commit
5f9acb0e0a
3 changed files with 34 additions and 1 deletions
  1. 6 1
      p/Class/LoadList.cs
  2. 1 0
      p/MainWindow.xaml.cs
  3. 27 0
      p/PageService.xaml.cs

+ 6 - 1
p/Class/LoadList.cs

@@ -6,7 +6,12 @@ using System.Threading.Tasks;
 
 
 namespace p.Class
 namespace p.Class
 {
 {
-    class LoadList
+   public class LoadList
     {
     {
+        public List<Agent> agent;
+        public LoadList()
+        {
+            agent = BaseConnect.BaseModel.Agent.ToList();
+        }
     }
     }
 }
 }

+ 1 - 0
p/MainWindow.xaml.cs

@@ -25,6 +25,7 @@ namespace p
             InitializeComponent();
             InitializeComponent();
             BaseConnect.BaseModel = new user28Entities();
             BaseConnect.BaseModel = new user28Entities();
             PageLoad.MainFrame = FrameMain;
             PageLoad.MainFrame = FrameMain;
+          
         }
         }
     }
     }
 }
 }

+ 27 - 0
p/PageService.xaml.cs

@@ -20,9 +20,36 @@ namespace p
     /// </summary>
     /// </summary>
     public partial class PageService : Page
     public partial class PageService : Page
     {
     {
+        
         public PageService()
         public PageService()
         {
         {
             InitializeComponent();
             InitializeComponent();
+            
+        }
+
+        private void EditService_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void DeleteServise_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void NewZapis_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void SearchBarTxt_TextChanged(object sender, TextChangedEventArgs e)
+        {
+
+        }
+
+        private void CostSortButtum_Click(object sender, RoutedEventArgs e)
+        {
+
         }
         }
     }
     }
 }
 }