コード例 #1
0
 public void SetResources(CV cv)
 {
     Data    = new FrEn <ObservableCollection <CollectionView> >();
     Data.Fr = new ObservableCollection <CollectionView>()
     {
         CollectionView.For("Fr", cv.Experiences.Fr),
         CollectionView.For("Fr", cv.Formations.Fr),
     };
     Data.En = new ObservableCollection <CollectionView>()
     {
         CollectionView.For("En", cv.Experiences.En),
         CollectionView.For("En", cv.Formations.En),
     };
 }
コード例 #2
0
 public CV()
 {
     Experiences     = new FrEn <List <Experience> >();
     Formations      = new FrEn <List <Formation> >();
     Presentation    = new FrEn <List <string> >();
     Experiences.Fr  = setData <Experience>("Fr");
     Experiences.En  = setData <Experience>("En");
     Formations.En   = setData <Formation>("En");
     Formations.Fr   = setData <Formation>("Fr");
     Presentation.En = setPresentation("En");
     Presentation.Fr = setPresentation("Fr");
     StartMonth      = 3;
     DurationMonths  = 6;
     TelephoneNo     = "06 95 35 67 10";
     Email           = "*****@*****.**";
 }
コード例 #3
0
        public void ViewTerminal()
        {
            var replace = new FrEn <List <string> >();

            replace.Fr.AddRange(CV.Presentation.Fr);
            replace.En.AddRange(CV.Presentation.En);
            Term = Terminal.Load(new List <TermText> {
                new TermText()
                {
                    Lines     = File.ReadAllLines(@"../../Text/Presentation.c").ToList(),
                    Replace   = replace,
                    OnSuccess = () => { ViewPresentation(); }
                },
                new TermText()
                {
                    Lines     = File.ReadAllLines(@"../../Text/PresentationV2.cs").ToList(),
                    OnSuccess = () => { ViewExpertise(); }
                },
            });
            Term.Pause            = new Cmd((o) => { return(StdOutBlock.Text == ""); }, () => { Term.Display.IsEnabled = !Term.Display.IsEnabled; });
            Term.Display.Interval = TimeSpan.FromMilliseconds(3);
            Term.Display.Start();
        }