Sites_Class

      1| using System;
      2| using System.Collections.Generic;
      3| using System.Linq;
      4| using System.Text;
      5| 
      6| namespace MyDesktop
      7| {
      8|     class Sites_Class
      9|     {
    10|         public static int iNextAppObj = 0;
    11|         public static int iMaxAppObjects = 26;
    12| 
    13|         public static string[] sBrowser = new string[3];
    14| 
    15|         //objects private attribute/definition
    16|         private int iBrowser;
    17|         private string sUrl;
    18|         private string sDescription;
    19|         private string sPassword;
    20| 
    21|         //Constructor Method
    22|         public Sites_Class(int iBrowser_Value, string sUrl_Value,
    23|           string sDescription_Value, string sPassword_Value)
    24|         {
    25|             iBrowser = iBrowser_Value;
    26|             sUrl = sUrl_Value;
    27|             sDescription = sDescription_Value;
    28|             sPassword = sPassword_Value;
    29|             iNextSiteObj++;
    30|         }
    31| 
    32|         //Destructor Method
    33|         ~Sites_Class()
    34|         {
    35|             //Leave empty - no code.
    36|         }
    37| 
    38|         //CANNOT ACCESS PRIVATE METHODS EXCEPT THROUGH AN OBJECT OF ITS CLASS!!!
    39| 
    40|         public string Get_Browser()
    41|         {
    42|             Get_Browser_Path(iBrowser);
    43|         }
    44| 
    45|         public string Get_Url()
    46|         {
    47|             return sUrl;
    48|         }
    49| 
    50|         public string Get_Description()
    51|         {
    52|             return sDescription;
    53|         }
    54| 
    55|         public string Get_Password()
    56|         {
    57|             return sPassword;
    58|         }
    59|     }//end of class
    60| }