コード例 #1
0
        private static void SetMinFileIO(string dir)
        {
            string dataDir = ".\\" + dir + "\\";

            _fileIO = new MinTestFileIO(dataDir);
            FileIOFactory.SetFileIO(_fileIO);
        }
コード例 #2
0
 public Test()
 {
     if (_enableLogging)
     {
         string  strFile = @"c:\temp\log\wpfdemo.log";
         IFileIO fileIO  = new LogFileIO(strFile);
         FileIOFactory.SetFileIO(fileIO);
     }
     else
     {
         IFileIO fileIO = new FileIO();
         FileIOFactory.SetFileIO(fileIO);
     }
     InitializeComponent();
 }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BootstrapImport"/> class.
        /// </summary>
        public BootstrapImport() : base(null)
        {
            this.Caption = "Bootstrap Importer";

            // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable,
            // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on
            // the object returned by the Content property.
            this.Content = new BootstrapImportControl();


            // set file io factory, tempory set to FileIO which is existing file io.
            IFileIO fileIO = new FileIO();

            FileIOFactory.SetFileIO(fileIO);
        }
コード例 #4
0
 private static void SetDefaultFileIO()
 {
     _fileIO = new FileIO();
     FileIOFactory.SetFileIO(_fileIO);
 }