Пример #1
0
 public ManageBranch()
 {
     InitializeComponent();
     s = new ServiceBRAdmin.BranchAdminServiceClient();
     itemid.Add(0);
     foreach (ServiceBRAdmin.BranchAdminData i in s.selectBranchAdmin().ToList())
     {
         item.Add(i.Name);
         itemid.Add(i.Id);
     }
     combobr_adminList.Items.Add("Location");
     editcomboadmin.Items.Add("Location");
     foreach (string i in item)
     {
         combobr_adminList.Items.Add(i);
         editcomboadmin.Items.Add(i);
     }
     AllBranch.LinkBehavior = System.Windows.Forms.LinkBehavior.AlwaysUnderline;
     List.BringToFront();
 }
 public void load_data()
 {
     brAdmins = s.selectBranchAdmin().ToList();
     brAdmindata.DataSource = brAdmins;
 }