public NewsControl() { InitializeComponent(); NewsSecService = new NewsSecureServiceClient(); NewsService = new NewsServiceClient(); }
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; }
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; }