public SoftwareController( ISoftwareService service, IResponseHelper response) { _service = service; _response = response; }
public PromoService() { _globalOptionService = DependencyService.Get <IGlobalOptionService>(); _softwareService = DependencyService.Get <ISoftwareService>(); _sponsorService = DependencyService.Get <ISponsorService>(); _logService = DependencyService.Get <ILogService>(); }
public DeviceController(IDeviceService deviceService, ISoftwareVersionService softwareVersionService, ISoftwareService softwareService, IDeviceSoftwareVersionService deviceSoftwareVersionService) { _deviceService = deviceService; _softwareVersionService = softwareVersionService; _softwareService = softwareService; _deviceSoftwareVersionService = deviceSoftwareVersionService; }
public AddPersonPresenter(IAddPersonView view, ISoftwareService softwareService) : base(view) { this.softwareService = softwareService; View.CloseFormClicked += View_CloseFormClicked; View.AddPersonClicked += View_AddPersonClicked; View.Load += View_Load; }
public AddSoftwareTypePresenter(IAddSoftwareTypeView view, ISoftwareService softwareService) : base(view) { View.AddProductClicked += View_AddProductClicked; View.CloseFormClicked += View_CloseFormClicked; View.Load += View_Load; _softwareService = softwareService; }
public DataTable GetSoftwareInfo() { _applications = new SoftwareService(_scope, _options); var softwareNamesList = _applications.GetAllSoftware(); var dt = CreateExcelFile.ListToDataTable(softwareNamesList, "Software"); DataView dv = dt.DefaultView; dv.Sort = "Name asc"; return(dv.ToTable()); }
public AddProductPresenter(IAddProductView view, ISoftwareService softwareService) : base(view) { View.CloseFormClicked += View_CloseFormClicked; View.Load += View_Load; View.AddProductClicked += View_AddProductClicked; _softwareService = softwareService; model = new AddProductModel { AllSoftwareTypes = softwareService.GetSoftwareTypes().ToList() }; }
public SoftwareController(ISoftwareService powerSupplyService, IWebHostEnvironment hostEnvironment, IPublisherService publisherService, IDeveloperService developerService, ICPUService cpuService, IVideoCardService videoCardService, IComputerAssemblyService computerAssemblyService, IUserService userService) { _softwareService = powerSupplyService; _webHostEnvironment = hostEnvironment; _publisherService = publisherService; _developerService = developerService; _cpuService = cpuService; _videoCardService = videoCardService; _computerAssemblyService = computerAssemblyService; _userService = userService; }
public SoftwareController( IMapper mapper, IRetornoHelper retornoHelper, IValidator <Software> validator, ISoftwareService softwareService) { _mapper = mapper; _retornoHelper = retornoHelper; _validator = validator; _softwareService = softwareService; }
public PromoCodePageViewModel(INavigation navigation = null, HOPage root = null) : base(navigation) { _applicationService = DependencyService.Get <IApplicationService>(); _startupService = DependencyService.Get <IStartupService>(); _softwareService = DependencyService.Get <ISoftwareService>(); _globalOptionService = DependencyService.Get <IGlobalOptionService>(); _themeService = DependencyService.Get <IThemeService>(); _logService = DependencyService.Get <ILogService>(); Root = root; #if DEBUG PromoCode = "106-19522-1"; #endif }
public SplashPageViewModel(INavigation navigation) : base(navigation) { _globalOptionService = DependencyService.Get <IGlobalOptionService>(); _softwareService = DependencyService.Get <ISoftwareService>(); _logService = DependencyService.Get <ILogService>(); _promoService = DependencyService.Get <IPromoService>(); SetImage(); SetSize(); // Setup the sponsor info try { SetSponsor(); } catch (Exception ex) { _logService.LogException(ex); } }
private void btnGetSoftware_Click(object sender, EventArgs e) { try { if (_sysConnector == null) { ShowConnectionErrorMessage(); } else { this.Cursor = Cursors.WaitCursor; _applications = new SoftwareService(_sysConnector.Scope, _sysConnector.Options); listSoftware.DataSource = new BindingList <SoftwareInfo>(_applications.GetAllSoftware()); listSoftware.DisplayMember = "Name"; this.Cursor = Cursors.Default; } } catch (Exception ex) { var message = new MessageWindow("Error", ex); message.ShowDialog(); } }
public SoftwareServiceTests() { _softwareManager = Substitute.For <ISoftwareManager>(); _softwareService = new SoftwareService(_softwareManager); }
public AuthenticationService() { _softwareService = DependencyService.Get <ISoftwareService>(); }
public SoftwareController(ISoftwareService softwareService, ISoftwareVersionService softwareVersionService) { _softwareService = softwareService; _softwareVersionService = softwareVersionService; }
public SoftwareController(ISoftwareService ServiceManager) { _serviceManager = ServiceManager; }
public TestPage() { InitializeComponent(); _SoftwareService = DependencyService.Get <ISoftwareService>(); _CrossFileService = DependencyService.Get <ICrossFileService>(); _digitalIDService = DependencyService.Get <ImilkDigitalIDService>(); string promoCode = "106-19522-1"; string registrationId = "32-AMKM5"; // Check Cross Connectivity if (CrossConnectivity.Current.IsConnected) { var bandwidths = CrossConnectivity.Current.Bandwidths; var connectionTypes = CrossConnectivity.Current.ConnectionTypes; // Check Cross Settings if (Settings.GeneralSettings.IsEmpty()) { Settings.GeneralSettings = promoCode; } string generalSettings = Settings.GeneralSettings; // Check Service // var result = _SoftwareService.AgentSplashDefData(registrationId, promoCode); string path = _CrossFileService.GetDefaultDirectory(); Debug.WriteLine(path); //result = _SoftwareService.GetAgentSplash(registrationId, promoCode); //ImageName.Source = ImageSource.FromUri(new Uri(result)); //result = _SoftwareService.GetImageId(registrationId, promoCode); //result = _SoftwareService.GetMessageText(registrationId, promoCode); //var files = _SoftwareService.GetSponsorZipFiles(registrationId, promoCode); //string ho3version = _SoftwareService.HO_3_0_0(); //string ho4version = _SoftwareService.HO_4_0_0(); //ImageResponse response = _SoftwareService.IsRegistrationKeyValid(registrationId, promoCode); RegistrationRequest request = new RegistrationRequest() { DevLicenseKey = "", DevUserKey = "", EmailAddress = "*****@*****.**", FirstName = "msmsfarmers279", LastName = "msmsfarmers279", Password = "******", PasswordAnswer = "Yes", PasswordQuestion = "Is it common?", PreferredLanguage = 12, PromoCode = "106-22222-2", SubscribeToEarsNotification = true, SubscribeToMilkNotification = true, Username = "******", ZipCode = "74110" }; //RegistrationResponse resonse = _SoftwareService.MemberRegistration(request); //string path = _CrossFileService.CreateDirectory("Digital ID"); //string fileName = "Log.txt"; //if (_CrossFileService.IsFileExists(fileName, path)) //{ // _CrossFileService.DeleteFile(fileName, path); //} //else //{ // // Add File Content // string content = $"{DateTime.Now.ToString("dd MMM yyy hh:mm:ss")}\tApplication Started.{Environment.NewLine}"; // _CrossFileService.Save(fileName, content, path); // content = $"{DateTime.Now.ToString("dd MMM yyy hh:mm:ss")}\tFile And Directory are Created.{Environment.NewLine}"; // _CrossFileService.Save(fileName, content, path); // content = $"{DateTime.Now.ToString("dd MMM yyy hh:mm:ss")}\tContent is going to be loaded.{Environment.NewLine}"; // _CrossFileService.Save(fileName, content, path); // // Read File Content // LabelMessage.Text = _CrossFileService.Load(fileName, path); //} } else { DisplayAlert("Network Info", "You're not connected to internet", "Ok"); } // Save To Database milkDigitalID digitalId = new milkDigitalID() { FirstName = "Jamal", LastName = "Uddin", MiddleName = "MiddleName", NickName = "Nick Name", DateOfBirth = DateTime.Now, Gender = "Male", Height = "4", Weight = "10", Age = 15, BloodType = "Blood Type", Comments = "Comments", Contact = "Contact", DistinguishingMarks = "Dis", EyeColor = "Eye Color", Glasses = "Glasses", HairColor = "Hair Color", Race = "Race", PhotoDate = DateTime.UtcNow, PortraitView = null, ImagePortraitView = "", SideView = null, ImageSideView = "" }; // _digitalIDService.CreateDigitalID(digitalId); var ids = _SoftwareService.GetSponsorIds(registrationId, promoCode); string test1 = @"D:\farmersImg\e3be5524-b6eb-4ead-ba11-d381e74474ac.jpg".ConvertToImageUrl(); ImageName.Source = test1.FromBase64String(); }
public SoftwareController(ISoftwareService softwareService) { _softwareService = softwareService; }
public SoftwareController(ISoftwareService _service) { service = _service; }