コード例 #1
0
        public NewsControl()
        {
            InitializeComponent();

            NewsSecService = new NewsSecureServiceClient();
            NewsService = new NewsServiceClient();
        }
コード例 #2
0
        public NewsDetails(ClientCredentials cc)
        {
            InitializeComponent();

            newsService = new NewsSecureServiceClient();
            newsService.ClientCredentials.UserName.UserName = cc.UserName.UserName;
            newsService.ClientCredentials.UserName.Password = cc.UserName.Password;
            actualNews = new News();

            OpenTextBoxes();
            isNewEmployeeEnable = true;
            SaveButton.IsEnabled = true;
        }
コード例 #3
0
        public NewsDetails(ClientCredentials cc, News _actualNews)
        {
            InitializeComponent();

            newsService = new NewsSecureServiceClient();
            newsService.ClientCredentials.UserName.UserName = cc.UserName.UserName;
            newsService.ClientCredentials.UserName.Password = cc.UserName.Password;

            this.actualNews = _actualNews;

            UpdateNewsDetails();
            isNewEmployeeEnable = false;
            SaveButton.IsEnabled = false;
        }