protected void OnYtreeviewAddressesRowActivated(object o, Gtk.RowActivatedArgs args) { var node = ytreeviewAddresses.GetSelectedObject() as AddressNode; ITdiDialog dlg = new DeliveryPointDlg(node.Address); TabParent.AddSlaveTab(this, dlg); }
public void OpenFixedPricesForDeliveryPoint(int deliveryPointId) { DeliveryPointDlg deliveryPointDlg = new DeliveryPointDlg(deliveryPointId); deliveryPointDlg.OpenFixedPrices(); TDIMain.MainNotebook.AddTab(deliveryPointDlg); }
void OnButtonAddClicked(object sender, EventArgs e) { if (MyOrmDialog.UoW.IsNew) { if (CommonDialogs.SaveBeforeCreateSlaveEntity (MyOrmDialog.EntityObject.GetType (), typeof(DeliveryPoint))) { if (!MyTdiDialog.Save ()) return; } else return; } ITdiDialog dlg = new DeliveryPointDlg (DeliveryPointUoW.Root); MyTab.TabParent.AddSlaveTab (MyTab, dlg); }
protected void OnButtonEditClicked(object sender, EventArgs e) { ITdiDialog dlg = new DeliveryPointDlg((treeDeliveryPoints.GetSelectedObjects () [0] as ClientDeliveryPointVMNode).Id); MyTab.TabParent.AddSlaveTab (MyTab, dlg); }