Пример #1
0
        protected void OnYtreeviewAddressesRowActivated(object o, Gtk.RowActivatedArgs args)
        {
            var        node = ytreeviewAddresses.GetSelectedObject() as AddressNode;
            ITdiDialog dlg  = new DeliveryPointDlg(node.Address);

            TabParent.AddSlaveTab(this, dlg);
        }
Пример #2
0
        public void OpenFixedPricesForDeliveryPoint(int deliveryPointId)
        {
            DeliveryPointDlg deliveryPointDlg = new DeliveryPointDlg(deliveryPointId);

            deliveryPointDlg.OpenFixedPrices();
            TDIMain.MainNotebook.AddTab(deliveryPointDlg);
        }
Пример #3
0
        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);
        }
Пример #4
0
 protected void OnButtonEditClicked(object sender, EventArgs e)
 {
     ITdiDialog dlg = new DeliveryPointDlg((treeDeliveryPoints.GetSelectedObjects () [0] as ClientDeliveryPointVMNode).Id);
     MyTab.TabParent.AddSlaveTab (MyTab, dlg);
 }