Пример #1
0
        private void changeDiler(int idDiler)
        {
            DilerList dilerList = DilerList.getInstance();
            Diler     diller    = dilerList.getItem(idDiler);

            if (diller != null)
            {
                tbDealerContacts.Text = diller.Text;
            }
        }
Пример #2
0
        private void _dgvDiller_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int idDiller;

            int.TryParse(_dgv.Rows[_dgv.SelectedCells[0].RowIndex].Cells[0].Value.ToString(), out idDiller);

            DilerList dillerList = DilerList.getInstance();
            Diler     diller     = dillerList.getItem(idDiller);

            ShowAddEdit(diller);
        }
Пример #3
0
        public formDillerList()
        {
            InitializeComponent();

            dillerList = DilerList.getInstance();
        }