Ejemplo n.º 1
0
        static void Main( string[] args )
        {
            BookFSDispatcher NewDisp = new BookFSDispatcher ( "settings.ini" );
            if ( args.Length == 0 )
            {
                Console.WriteLine("Please enter the arguments or enter \"help\"");
            }
            else
            {
                switch ( args[0] )
                {
                case "change_settings":
                    NewDisp.change_settings(args[1]);
                    break;
                case "add":
                    NewDisp.RecordBooks( new Book (args[1], args[2], args[3]));
                }

            }

            List<Book> BB = new List<Book> ();
            Book First = new Book ( "namee", "authorr", "isbnn" );
            BB.Add( First );
            NewDisp.RecordBooks(BB);
        }
Ejemplo n.º 2
0
 public virtual void RecordBooks( Book _Book )
 {
 }
Ejemplo n.º 3
0
 public override void RecordBooks( Book _Book )
 {
     StreamWriter output = new StreamWriter (pathfile);
         output.WriteLine(_Book.name);
         output.WriteLine(_Book.author);
         output.WriteLine(_Book.isbn);
         output.Close();
 }