Exemple #1
0
        public void Add(DiagCard diagCard)
        {
            if (list.Exists(item => item == diagCard))
                return;

            list.Add(diagCard);
        }
        public DiagCard_AddEdit(DiagCard diagCard)
        {
            InitializeComponent();

            _diagCard = diagCard;
        }
Exemple #3
0
        protected override void loadFromSql()
        {
            DataTable dt = _provider.Select("DiagCard");

            foreach (DataRow row in dt.Rows)
            {
                DiagCard diagCard = new DiagCard(row);
                Add(diagCard);
            }
        }
Exemple #4
0
 private void showAddEditDiagCard(DiagCard dCard)
 {
     DiagCard_AddEdit vAE = new DiagCard_AddEdit(dCard);
     vAE.ShowDialog();
 }