protected override void tambahBtn_Click(object sender, EventArgs e) { var frm = new FrmOutlet(); frm.Listener = this; frm.ShowDialog(); }
protected override void EditBtn_Click(object sender, EventArgs e) { Outlet outlet = (Outlet)outletBindingSource.Current; if (outlet == null) { return; } var frm = new FrmOutlet(outlet); frm.Listener = this; frm.ShowDialog(); }