Exemplo n.º 1
0
        private void OpenRecord(Tire item)
        {
            var form = new TireEdit();
            var obj  = context.TireInfoes.FirstOrDefault(i => i.TireId == item.TireId);

            form.MdiParent = this.MdiParent;
            form.ShowObject(obj);
            form.Show();
        }
Exemplo n.º 2
0
        public void OpenSelectedItem()
        {
            var selected = tiresBindingSource.Current as TireInfo;

            if (null != selected)
            {
                var form = new TireEdit();
                form.MdiParent = this.MdiParent;
                form.ShowObject(selected);
                form.Show();
            }
        }