private void tabDoan_AddBtn_Click(object sender, EventArgs e) { DoanKhach_Form form = _serviceProvider.GetRequiredService <DoanKhach_Form>(); var main = this.Location; form.Location = new Point((main.X + 10), (main.Y + 10)); form.Show(); }
private void button1_Click(object sender, EventArgs e) { HanhKhach_Form HK = _service.GetRequiredService <HanhKhach_Form>(); HK.Show(); DoanKhach_Form DK = _service.GetRequiredService <DoanKhach_Form>(); DK.Show(); }