Example #1
0
 protected DocumentBase(string filePath, AbstractLanguageClass language)
     : base(filePath)
 {
     ContentId = filePath;
     FileLanguage = language;
     InitializeControl();
 }
Example #2
0
 public KukaViewModel(string filepath, AbstractLanguageClass lang)
     : base(filepath, lang)
 {
     Grid.Loaded += Grid_Loaded;
     ShowGrid = false;
     FileLanguage = lang;
     Source.FileLanguage = FileLanguage;
     Data.FileLanguage = FileLanguage;
     Source.GotFocus += (s, e) => TextBox = (s as Editor);
     Data.GotFocus += (s, e) => TextBox = (s as Editor);
     Source.TextChanged += (s, e) => TextChanged(s);
     Data.TextChanged += (s, e) => TextChanged(s);
     Source.IsModified = false;
     Data.IsModified = false;
 }
Example #3
0
 public static void GetPositions(string filename, AbstractLanguageClass lang, string iconpath)
 {
     var backgroundWorker = new BackgroundWorker();
     backgroundWorker.DoWork += BackgroundworkerDoWork;
     backgroundWorker.RunWorkerCompleted += BackgroundworkerRunWorkerCompleted;
     backgroundWorker.RunWorkerAsync(new WorkerArgs
     {
         Filename = filename,
         Lang = lang,
         IconPath = iconpath
     });
 }
 public DocumentViewModel(string filepath, AbstractLanguageClass lang)
     : base(filepath, lang)
 {
 }