Beispiel #1
0
        public int CompareTo(object obj)
        {
            int
                result = -1;

            if (obj == null)
            {
                return(result);
            }

            switch (Type.GetTypeCode(obj.GetType()))
            {
            case TypeCode.Int32:
            {
                result = FAA.CompareTo(Convert.ToInt32(obj));
                break;
            }

            default:
            {
                result = FAA.CompareTo(((AA)obj).FAA);
                break;
            }
            }

            return(result);
        }
        public Form1()
        {
            InitializeComponent();
            faa                    = new FAA("Federal Aviation Administration");
            currentPage            = 1;
            txtBoxCurrentPage.Text = currentPage + "";

            label13.Visible = false;

            MessageBox.Show("This program requires a data set archive that its not included in the repository because of it´s size. Please read the README in gitHub for more info.");
        }