Exemplo n.º 1
0
        public FileForm(string filePath)
        {
            InitializeComponent();
            FileHandler = new FileHandler(filePath);
            Load += FileFormLoad;
            txtByLineResults.MouseDown += UpdateCurrentPosition;
            txtByLineResults.KeyUp += UpdateCurrentPosition;
            txtByLineResults.TextChanged += UpdateCurrentPosition;
            btnShowRows.Click += BtnShowRowsClick;
            btnFileCountRows.Click += BtnFileCountRowsClick;
            btnFindByRows.Click += BtnFindByRowsClick;
            CurrentStartLine = 1;

            btnShowBytes.Click += BtnShowBytesClick;
            btnFindByBytes.Click += BtnFindByBytesClick;
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //for (int i = 0; i < args.Length; i++)
            //{
            //    Console.WriteLine(string.Format("Deleting files not is use from path: {0}", args[i]));

            //    try
            //    {
            //        var fileHandler = new FileHandler();
            //        //fileHandler.DeleteFilesNotInUse(args[i]);
            //        fileHandler.MoveFilesInFolder("", "");
            //    }
            //    catch (Exception exception)
            //    {
            //        Console.WriteLine("Error: " + exception.Message);
            //    }

            //}

            var fileHandler = new FileHandler();
            fileHandler.MoveFiles(@"C:\Projects\Torgeir\SR_1004_LikningsdataBestilling", @"C:\Projects\Torgeir\SR_1004");
            Console.ReadLine();
        }