internal MailChimp( IAutomations automations, ICampaigns campaigns, IConversations conversations, IEcomm ecomm, IFolders folders, IGallery gallery, IGoal goal, IHelper helper, ILists lists, IReports reports, ITemplates templates, IUsers users, IVip vip) { Automations = automations; Campaigns = campaigns; Conversations = conversations; Ecomm = ecomm; Folders = folders; Gallery = gallery; Goal = goal; Helper = helper; Lists = lists; Reports = reports; Templates = templates; Users = users; Vip = vip; }
/// <summary>Initialisiert eine neue Instanz der <see cref="T:System.Object" />-Klasse.</summary> /// <exception cref="ArgumentNullException"> /// <paramref name="applicationSettings" /> is <see langword="null" />. /// <paramref name="templates" /> is <see langword="null" />. /// <paramref name="projects" /> is <see langword="null" />. /// <paramref name="gitCommands" /> is <see langword="null" />. /// <paramref name="template" /> is <see langword="null" />. /// <paramref name="project" /> is <see langword="null" />. /// </exception> public MigrateRepository(IApplicationSettings applicationSettings, ITemplates templates, IProjects projects, IGitCommands gitCommands, string template, string project) { if (applicationSettings == null) { throw new ArgumentNullException(nameof(applicationSettings)); } if (templates == null) { throw new ArgumentNullException(nameof(templates)); } if (projects == null) { throw new ArgumentNullException(nameof(projects)); } if (gitCommands == null) { throw new ArgumentNullException(nameof(gitCommands)); } if (template == null) { throw new ArgumentNullException(nameof(template)); } if (project == null) { throw new ArgumentNullException(nameof(project)); } _applicationSettings = applicationSettings; _templates = templates; _projects = projects; _gitCommands = gitCommands; _template = template; _project = project; }
private void VsLoginOnClick(object sender, RoutedEventArgs e) { _applicationSettings.VsUser = VsUsername.Text; _applicationSettings.VsPassword = VsPassword.Password; _applicationSettings.VsSource = VsSource.Text; _applicationSettings.VsProject = VsProjects.Text; VsProjects.IsEnabled = true; VsTemplates.IsEnabled = true; MigrationFailedTab.IsEnabled = true; SuccessfulTab.IsEnabled = true; _projects = new GetProjects(_applicationSettings); foreach (var project in _projects.Value.Value) { VsProjects.Items.Add(project.Name); } _templates = new GetTemplates(_applicationSettings); foreach (var template in _templates.Value.Value) { VsTemplates.Items.Add(template.Name); } VsLogin.IsEnabled = false; }
public WizardViewModel(IAppModel appModel, IShell shell, IDialogCoordinator dc, IAppConfig cfg, ITemplates templates) { this.appModel = appModel; this.shell = shell; dialCoord = dc; appConfig = cfg; ColorTheme = appConfig.ColorTheme; Templates = templates.GetBoardTemplates().Result; Columns = new ObservableCollection <Column>(); Rows = new ObservableCollection <Row>(); FillFromTemplateCommand = ReactiveCommand.Create(() => { if (SelectedTemplate == null) { return; } Columns.Clear(); Columns.AddRange(SelectedTemplate.Columns); Rows.Clear(); Rows.AddRange(SelectedTemplate.Rows); }); ClearAllCommand = ReactiveCommand.Create(() => { Columns.Clear(); Rows.Clear(); }); CreateCommand = ReactiveCommand.CreateFromTask(CreateCommandExecute); CancelCommand = ReactiveCommand.Create(this.Close); SelectFolderCommand = ReactiveCommand.Create(() => { var dialog = new FolderBrowserDialog { ShowNewFolderButton = false, SelectedPath = FolderName }; if (dialog.ShowDialog() == DialogResult.OK) { FolderName = dialog.SelectedPath; } }); AddColumnCommand = ReactiveCommand.CreateFromTask(async _ => { var ts = await dialCoord.ShowInputAsync(this, "Info", $"Enter new column name"); if (string.IsNullOrEmpty(ts)) { return; } if (Columns.Any(x => x.Name == ts)) { return; } Columns.Add(new Column { Name = ts }); }); AddRowCommand = ReactiveCommand.CreateFromTask(async _ => { var ts = await dialCoord.ShowInputAsync(this, "Info", $"Enter new row name"); if (string.IsNullOrEmpty(ts)) { return; } if (Rows.Any(x => x.Name == ts)) { return; } Rows.Add(new Row { Name = ts }); }); Title = "Creating new board"; FullTitle = Title; this.WhenAnyValue(x => x.BoardName) .Where(x => !string.IsNullOrWhiteSpace(x) && IsNewFile) .Subscribe(v => FileName = BoardNameToFileName(v)); appConfig.ColorThemeObservable .Subscribe(x => UpdateColorTheme()); }
public Manager(IGuests guests, ICompanies companies, ITemplates templates) { _guests = guests; _companies = companies; _templates = templates; }
public void Send(ITemplates template, Notification notification) { throw new NotImplementedException(); }
public void Send(ITemplates template, Notification notification) { //var mailData = template.GetMessage(); SendMail(template.GetMessage(), notification).Wait(); }
public PayTemplates(IMapper mapper, ITemplates templates, IData db) { this.templates = templates ?? throw new NullReferenceException(nameof(templates)); this.db = db ?? throw new NullReferenceException(nameof(db)); this.mapper = mapper ?? throw new NullReferenceException(nameof(mapper)); }
// Methods public SuiteBuilder(ITemplates templates, ITestFileReader reader, ITestFileReader sourceReader) { this.templates = templates; this.reader = reader; this.sourceReader = sourceReader; }