Example #1
0
        public void Add(Passport passport)
        {
            if (list.Exists(item => item == passport))
                return;

            list.Add(passport);
        }
Example #2
0
        public Passport_AddEdit(Passport passport)
        {
            InitializeComponent();

            _passport = passport;
        }
Example #3
0
        protected override void loadFromSql()
        {
            DataTable dt = _provider.Select("Passport");

            foreach (DataRow row in dt.Rows)
            {
                Passport passport = new Passport(row);
                Add(passport);
            }
        }
Example #4
0
        private bool openAddEditDialog(Passport passport)
        {
            Passport_AddEdit passportAE = new Passport_AddEdit(passport);

            return passportAE.ShowDialog() == System.Windows.Forms.DialogResult.OK;
        }