Beispiel #1
0
        //**************************************************************************************************************************************************************************************

        /*
         * public static StringBuilder Stringbuilder = new StringBuilder ( );
         * public static StringBuilder GetDataFromDiskFile(StringBuilder stringBuilder,  String File){
         *      StringBuilder SB = new StringBuilder();
         *      BinaryFormatter formatter = new BinaryFormatter ( );
         *      FileStream fs = new FileStream (File, FileMode.Open);
         *      var v = formatter.Deserialize (fs).ToString ( );
         *      SB.Append (v);
         *      fs.Close ( );
         *      return SB;
         * }
         *
         * public static BankAccount GetDataFromDiskFile(BankAccount B, String File){
         *      FileStream fs = new FileStream (File, FileMode.Open);
         *      // Get a BankAccount object for our data
         *      BankAccount Bk = new BankAccount ( );
         *      BinaryFormatter formatter = new BinaryFormatter ( );
         *      Bk = (BankAccount)formatter.Deserialize (fs);
         *      fs.Close ( );
         *      return Bk;
         * }
         * public static string GetDataFromDiskFile(string s, String File){
         *      FileStream fs = new FileStream (File, FileMode.Open);
         *      // Get a BankAccount object for our data
         *      BinaryFormatter formatter = new BinaryFormatter ( );
         *      s = (string)formatter.Deserialize (fs);
         *      fs.Close ( );
         *      return s;
         * }
         */
        // Get a Form from an IntPtr  HANDLE
        // return a string[] for listing and saving our config data
        //*******************************************************************************************************************************************************************************************//
        public static string[] ReadAllSeedData( )
        //*******************************************************************************************************************************************************************************************//
        {
            string[] str = { "", "", "", "", "", "" };
            char[]   ch  = { '\t' };
            str[0] = Customer.ReadCustNumberSeed( ).ToString( );
            str[1] = BankAccount.ReadBankAccountNumberSeed( ).ToString( );
            str[2] = BankAccount.ReadTotalBanks( ).ToString( );
            str[3] = Logger.ReadLastDate( ).ToString( );
            return(str);
        }