Ejemplo n.º 1
0
 public static ResourceController Create(string file, bool isCleaningXML)
 {
     var self = new ResourceController(file) { IsCleaningXML = isCleaningXML };
     self.ExtractResources();
     return self;
 }
Ejemplo n.º 2
0
 private void SelectFile(FileEntry file)
 {
     ResourceController = ResourceController.Create(file.FullName, (bool) ChkCleanXml.IsChecked);
     TeXml.Text = File.ReadAllText(file.FullName);
     BtnSave.IsEnabled = true;
     BtnTranslate.IsEnabled = true;
     if ((bool)ChkAutoTranslate.IsChecked)
         ResourceController.Translate(CbTranslateDirection.Text);
     IcResources.ItemsSource = null;
     IcResources.ItemsSource = ResourceController.Resources;
     BtnFileClose.IsEnabled = true;
     BtnReloadAutoCorrect.IsEnabled = true;
 }