当前位置: 首页>>代码示例>>C#>>正文


C# Service.GetAll方法代码示例

本文整理汇总了C#中Service.GetAll方法的典型用法代码示例。如果您正苦于以下问题:C# Service.GetAll方法的具体用法?C# Service.GetAll怎么用?C# Service.GetAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Service的用法示例。


在下文中一共展示了Service.GetAll方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MedicsWindow

        public MedicsWindow()
        {
            InitializeComponent();

            medico = new Medicos();

            medic = new Medic();
            service = new Service();
            speciality = new Speciality();


            medics = medic.GetAll();
            medicsGrid.ItemsSource = medics.ToArray();

            services = service.GetAll();
            foreach (ServicioMedico service in services)
            {
                comboService.Items.Add(service.nombre + " - " + service.descripcion);
            }

            specialities = speciality.GetAll();
            foreach (Especialidades speciality in specialities)
            {
                comboSpeciality.Items.Add(speciality.nombre + " - " + speciality.descripcion);
            }


        }
开发者ID:Maldercito,项目名称:adat,代码行数:28,代码来源:1453801388$MedicsWindow.xaml.cs

示例2: UsersWindows

        public UsersWindows()
        {
            InitializeComponent();
            lblNss.Visibility = Visibility.Collapsed;
            txtNss.Visibility = Visibility.Visible;
            txtPassword.Visibility = Visibility.Collapsed;
            lblPassword.Visibility = Visibility.Collapsed;


            user = new User();
            service = new Service();
            speciality = new Speciality();

            usuario = new Usuarios();

            users = user.GetAll();
            userGrid.ItemsSource = users;

            services = service.GetAll();
            

            specialities = speciality.GetAll();


        }
开发者ID:Maldercito,项目名称:adat,代码行数:25,代码来源:1453454028$UsersWindow.xaml.cs

示例3: MedicsWindow

        public MedicsWindow()
        {
            InitializeComponent();

            medico = new Medicos();

            medic = new Medic();
            service = new Service();
            speciality = new Speciality();


            medics = medic.GetAll();
            medicsGrid.ItemsSource = medics.ToArray();

            services = service.GetAll();


            specialities = speciality.GetAll();


        }
开发者ID:Maldercito,项目名称:adat,代码行数:21,代码来源:1453454076$MedicsWindow.xaml.cs

示例4: Main

        static void Main(string[] args)
        {
            Properties p = new Properties()
            {
                Name = "jarrik van camp",
                Email = "[email protected]"

            };
            Service service = new Service();

            service.Add(p);

            List<Properties> props = new List<Properties>();
            props = service.GetAll();

            foreach (var prop in props)
            {
                Console.WriteLine(prop.ToString());
            }
            Console.Read();
        }
开发者ID:Mortion,项目名称:Uses,代码行数:21,代码来源:Program.cs


注:本文中的Service.GetAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。