Exemple #1
0
        public void CSharpManagerTest()
        {
            var file     = new FileInfo(FileName);
            var transfer = new ClassManagerTransfer(file);

            transfer.Save(CurrentDirectory, true);
            Assert.IsTrue(true);
        }
Exemple #2
0
        private void ExecuteManager(object sender, EventArgs e)
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            var sourceFile = ServiceProvider.GetCurrentFile();

            if (sourceFile?.Exists != true || !sourceFile.Extension.Equals(".cs", StringComparison.OrdinalIgnoreCase))
            {
                return;
            }

            var transfer = new ClassManagerTransfer(sourceFile);

            transfer.Save();
        }