private void CheckOptions() { var options = _optionsService.GetSender(); Auth = options.GetAuth(); if (Auth.Login is null || Auth.Password is null) { MessageBox.Show("Options !"); } }