示例#1
0
        /*
         * public void LoadMovies()
         * {
         *  StreamReader fileReader = new StreamReader("C:/Users/ithom2/Documents/Data/dvdParsed.csv");
         *  string line;
         *  int lineNum = 0;
         *  int added = 0;
         *  while ((line = fileReader.ReadLine()) != null)
         *  {
         *      lineNum++;
         *      string name = "";
         *      string studio = "";
         *      string yearStr = "";
         *      int year = 0;
         *      string a = "cat";
         *
         *      string[] elements = line.Split(';');
         *
         *      name = removeEnds(elements[0]);
         *      studio = removeEnds(elements[1]);
         *      yearStr = removeEnds(elements[2]);
         *      if (Check.isInt32(yearStr))
         *          year = Int32.Parse(yearStr);
         *      else
         *          year = 0;
         *      if ((lineNum % 2500) == 0 && year != 0)
         *      {
         *          if (name.Length > 39 || studio.Length > 39)
         *          {
         *              int nextPartition2 = 0;
         *          }else
         *          {
         *              added++;
         *              MoviesTable.add(name, year, studio);
         *          }
         *      }
         *      int nextPartition = 0;
         *  }
         *
         *  fileReader.Close();
         * }
         *
         * public void LoadCopies()
         * {
         *  for(int i = 5; i <= 58; i++)
         *  {
         *      CopiesTable.add(i - 4, i);
         *      CopiesTable.add(54 + i - 4, i);
         *  }
         * }
         */

        public LoginMenu()
        {
            InitializeComponent();
            this.BackColor = Color.SteelBlue;
            GlobalControl.setButtonColor(this, Color.Goldenrod);
            GlobalControl.setTextBoxMaxLength(this, 40);
            this.AcceptButton = loginBtn;
        }
示例#2
0
        public LoginMenu()
        {
            InitializeComponent();

            //Set positions within login form
            setupLoginForm();

            //set colors on login menu
            this.BackColor = Color.SteelBlue;
            GlobalControl.setButtonColor(this, Color.Goldenrod);
            GlobalControl.setTextBoxMaxLength(this, 40);

            //set as enter button
            this.AcceptButton = login1Btn;
        }