Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     vkApi = VKAPI.Instance;
     data  = new DownloadData()
     {
         UserID = "1"
     };
     imgData = new ImageData();
     tr      = TranslationManager.Instance;
     this.albumURL.DataContext         = data;
     this.saveDir.DataContext          = data;
     this.languageSelector.DataContext = tr;
     tr.CurrentLanguage = tr.Languages.First(a => a.TwoLetterISOLanguageName == tr.CurrentLanguage.TwoLetterISOLanguageName);
 }
 public MainWindow()
 {
     InitializeComponent();
     vkApi = VKAPI.Instance;
     data = new DownloadData()
     {
         UserID = "1"
     };
     imgData = new ImageData();
     tr = TranslationManager.Instance;
     this.albumURL.DataContext = data;
     this.saveDir.DataContext = data;
     this.languageSelector.DataContext = tr;
     tr.CurrentLanguage = tr.Languages.First(a => a.TwoLetterISOLanguageName == tr.CurrentLanguage.TwoLetterISOLanguageName);
 }
 public static void RemoveListener(TranslationManager source, IWeakEventListener listener)
 {
     CurrentManager.ProtectedRemoveListener(source, listener);
 }
Ejemplo n.º 4
0
 public static void AddListener(TranslationManager source, IWeakEventListener listener)
 {
     CurrentManager.ProtectedAddListener(source, listener);
 }