private void OnBindToElement(object sender, BindToElementEventArgs e) { if (e.Element == null || !(e.Element is FolderElement)) return; Element = e.Element as FolderElement; this.DataContext = Element; }
private void OnBindToElement(object sender, BindToElementEventArgs e) { if (e.Element == null || !(e.Element is DropBoxUploaderElement)) return; var element = e.Element as DropBoxUploaderElement; DataModel = new DropBoxUploaderElementPanelDataModel(element); DataContext = DataModel; }
private void OnBindToElement(object sender, BindToElementEventArgs e) { if (e.Element == null || !(e.Element is AntiVirusElement)) return; var element = e.Element as AntiVirusElement; DataModel = new AntiVirusElementPanelDataModel(element); this.DataContext = DataModel; }
private void OnBindToElement(object sender, BindToElementEventArgs e) { if (e.Element == null || !(e.Element is VideoThumbnailerElement)) return; var element = e.Element as VideoThumbnailerElement; DataModel = new VideoThumbnailerElementPanelDataModel(element); this.DataContext = DataModel; }
private void OnBindToElement(object sender, BindToElementEventArgs e) { if (e.Element == null || !(e.Element is FileMatchElement)) return; Element = e.Element as FileMatchElement; var project = GetProjectElement(e.CommanderSettings, Element); CommandSettings = GetCommandSettings(CurrentConfiguration.Container, project); var conversionType = Element.ConversionType ?? string.Empty; var commandSettingKey = Element.CommandSettingsKey ?? string.Empty; BindConversionTypes(conversionType); BindCommandSettingKeys(conversionType, commandSettingKey); this.DataContext = Element; }