This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InSourceNotificationGroup:IStudioGroupNotification | |
{ | |
private readonly ObservableCollection<IStudioNotification> _notifications; | |
public InSourceNotificationGroup(string key) | |
{ | |
Key = key; | |
_notifications = new ObservableCollection<IStudioNotification>(); | |
} | |
public string Title { get; set; } | |
public IStudioNotificationCommand Action { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InSourceNotification: IStudioNotification | |
{ | |
public InSourceNotification(Guid id) | |
{ | |
Id = id; | |
} | |
public Guid Id { get; } | |
public string Title { get; set; } | |
public IStudioNotificationCommand LinkAction { get; set; } | |
public bool IsExpanderVisible { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override bool OnFileComplete(ProjectFile projectFile, IMultiFileConverter multiFileConverter){ | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Home Tab | |
[RibbonGroupLayout(LocationByType = typeof(TranslationStudioDefaultRibbonTabs.HomeRibbonTabLocation))] | |
2. Editor Review | |
[RibbonGroupLayout(LocationByType = typeof(TranslationStudioDefaultRibbonTabs.EditorReviewRibbonTabLocation))] | |
3. Editor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Action("Action Name", Name = "Help", Icon = "wiki", Description = "")] | |
[ActionLayout(typeof(TmAnonymizerRibbonGroup), 250, DisplayType.Large)] | |
public class TmAnonymizerHelpAction : AbstractAction{ | |
protected override void Execute(){ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[RibbonGroup("TmRibbonGroup", "Tm Anonymizer user guide")] | |
[RibbonGroupLayout(LocationByType = typeof(TranslationStudioDefaultRibbonTabs.HomeRibbonTabLocation))] | |
public class TmAnonymizerRibbonGroup : AbstractRibbonGroup{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public YourWindowsFormsControl(){ | |
InitializeComponent(); | |
var wpfMainWindow = new MainViewControl(); | |
wpfMainWindow.InitializeComponent(); //initialize wpf control | |
elementHost.Child =wpfMainWindow; //assign the control to element host | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static readonly Lazy<YourControl> Control = new Lazy<YourControl>(() => new YourControl()); | |
protected override void Initialize(IViewContext context){ | |
} | |
protected override Control GetContentControl(){ | |
return Control.Value; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[View(Id = "View Id",Name = "View Name",Description = "Description,LocationByType = typeof(TranslationStudioDefaultViews.TradosStudioViewsLocation))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tag = new Tag(TagType.TextPlaceholder, string.Empty, 1); (Tag object is found in Sdl.LanguagePlatform.Core.dll ) |