public UpdateRieltor(Rieltor rieltor, RieltorsForm parent) { InitializeComponent(); rieltorComponent = new RieltorsComponent(); this.parent = parent; updateRieltor = rieltor; textBox1.Text = rieltor.lastName; textBox2.Text = rieltor.firstName; textBox3.Text = rieltor.middleName; numericUpDown1.Value = rieltor.comission; indx = rieltor.id; }
public AddRieltor(RieltorsForm parentForm) { InitializeComponent(); rieltorComponent = new RieltorsComponent(); parent = parentForm; }
public RieltorsForm() { InitializeComponent(); client = new RieltorsComponent(); UpdateDataGrid(); }