Esempio n. 1
0
        public LabelMakerViewModel()
        {
            this._inferencer = new CsvTypeInferencer();

            this._dialog = new OpenFileDialog
            {
                InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
                Filter           = "CSV File|*.csv|All|*.*",
            };

            this.OutputPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            this.FileName   = "output.pdf";

            this._labelContext = new LabelContext();
            this._pdfContext   = new PdfContext();

            this.PdfSize       = this._pdfContext.PdfSizeSet;
            this.Dpi           = this._pdfContext.Dpi;
            this.ParPage       = this._labelContext.ParPage;
            this.MarginRatio   = this._labelContext.MarginRatio;
            this.LineWidth     = this._labelContext.OutlineWidth;
            this.IsVisibleLine = this._pdfContext.IsVisibleSeparateLine;

            this.ToAddressList   = new ObservableCollection <BindableAddress>();
            this.FromAddressList = new ObservableCollection <BindableAddress>();
        }
        public CsvConverterViewModel()
        {
            this._inferencer = new CsvTypeInferencer();

            this._dialog = new OpenFileDialog
            {
                InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
                Filter           = "CSV File|*.csv|All|*.*",
            };

            this.SrcKind  = CsvKind.デフォルト;
            this.DestKind = CsvKind.デフォルト;
        }
Esempio n. 3
0
 public ArgumentNormalizer()
 {
     this._inferencer = new CsvTypeInferencer();
 }