Beispiel #1
0
        /// <summary>
        ///     Renders but adds constraint that the previous anchor will never be chosen as the next anchor
        /// </summary>
        /// <param name="dirname"></param>
        private string StartRenderNoRepeat(string dirname)
        {
            var dataPointsFilename = Utility.GetDatapointsFilename(ShapeName, Settings);
            var anchorsFilename    = GetAnchorsFilename();

            Utility.CreateDirectory(dirname, Settings.Calculation.Overwrite);
            WriteAnchorsFile(dirname);
            NoRepeat.WriteDataPointsNoRepeatAnchor(Settings, AnchorPoints, dirname, dataPointsFilename);
            var dataFiles = new List <string> {
                dataPointsFilename
            };
            var povFile = PovRay.PreparePovRayFilesWithIni(Settings, dataFiles, anchorsFilename, dirname);

            Console.WriteLine("Written " + povFile);
            return(dataPointsFilename);
        }
Beispiel #2
0
 public NotesViewModel(Notes.Notes note)
 {
     _Note = note;
     if (_Note.RepeatType is NoRepeat)
     {
         _NoRepeat = (NoRepeat)_Note.RepeatType;
     }
     else if (_Note.RepeatType is DayRepeat)
     {
         _DayRepeat = (DayRepeat)_Note.RepeatType;
     }
     else if (_Note.RepeatType is WeekRepeat)
     {
         _WeekRepeat = (WeekRepeat)_Note.RepeatType;
     }
     else if (_Note.RepeatType is MonthRepeat)
     {
         _MonthRepeat = (MonthRepeat)_Note.RepeatType;
     }
 }