protected void OnButtonOpenClicked(object sender, EventArgs e) { var node = tableReadyForReception.GetSelectedNode() as ViewModel.ReadyForReceptionVMNode; var dlg = new CarUnloadDocumentDlg(node.Id, viewModel.Filter.RestrictWarehouse?.Id); TabParent.AddTab(dlg, this); }
protected void OnButtonCreateNewReceptionTicketClicked(object sender, EventArgs e) { var dlg = new CarUnloadDocumentDlg((yentryreferenceRouteListTo.Subject as RouteList).Id, null); this.TabParent.AddSlaveTab(this, dlg); }