Exemplo n.º 1
0
        public void RunLogic5()
        {
            string dllfile;

            try
            {
                Console.WriteLine("Enter 'string' type dll file name");
                dllfile = StringParser();
                Logics.Logic5(dllfile);
            }
            catch (FileNotFoundException e)
            {
                Console.WriteLine("Assembly file not found" + e.Message.ToString());
                throw;
            }
            catch (FileLoadException e)
            {
                Console.WriteLine("Couldnt Load the file" + e.Message.ToString());
                throw;
            }
        }
Exemplo n.º 2
0
        public void RunLogic5()
        {
            string dllfile;

            Console.WriteLine("Enter dll file : ");
            while (string.IsNullOrEmpty(dllfile = Console.ReadLine()))
            {
                throw new ScubaException(String.Format("Enter Valid string"), StudentNum);
            }
            try
            {
                Logics.Logic5(dllfile);
            }
            catch (FileNotFoundException e)
            {
                Console.WriteLine("Assembly file not found" + e.Message.ToString());
                throw;
            }
            catch (FileLoadException e)
            {
                Console.WriteLine("Couldnt Load the file" + e.Message.ToString());
                throw;
            }
        }