private void BtnAdd_Click(object sender, RoutedEventArgs e) { ServiceDeliveryViewModel ServiceDelivery = new ServiceDeliveryViewModel(); ServiceDelivery.Identifier = Guid.NewGuid(); ServiceDelivery_AddEdit addEditForm = new ServiceDelivery_AddEdit(ServiceDelivery, true); addEditForm.ServiceDeliveryCreatedUpdated += new ServiceDeliveryHandler(SyncData); FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("Podaci_o_kurirskoj_sluzbi")), 95, addEditForm); }
private void BtnEdit_Click(object sender, RoutedEventArgs e) { if (CurrentServiceDelivery == null) { MainWindow.WarningMessage = ((string)Application.Current.FindResource("Morate_odabrati_kurirsku_slizbu_za_izmenuUzvičnik")); return; } ServiceDelivery_AddEdit addEditForm = new ServiceDelivery_AddEdit(CurrentServiceDelivery, false); addEditForm.ServiceDeliveryCreatedUpdated += new ServiceDeliveryHandler(SyncData); FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("Podaci_o_kurirskoj_sluzbi")), 95, addEditForm); }