private async void cmdExit_Click(object sender, RoutedEventArgs e) { bool isCheckOk = await CheckOk(); if (isCheckOk == false) return; if (isNew) { refAtomDTO = new FormationTree(); refAtomDTO.Identification = txtName.Text; refAtomDTO.PlatformCategoryId = enumPlatformId.GeneralHumans; refAtomDTO.PlatformType =string.Empty; AtomObjectsEditEventArgs args = new AtomObjectsEditEventArgs(); args.isNew = isNew; args.atomDTO = refAtomDTO; if (EndAtomObjectsEditEvent != null) { EndAtomObjectsEditEvent(this, args); } } Close(); }
public frmActorEdit(FormationTree atomDTO) { InitializeComponent(); this.Background = new LinearGradientBrush(Colors.AliceBlue, Colors.LightGray, 90); refAtomDTO = atomDTO; if (refAtomDTO == null) isNew = true; }
public static async Task <FormationTree> SaveTreeObject(IHubProxy HubProxy, FormationTree atomDTO) { try { FormationTree result = await HubProxy.Invoke <FormationTree>("SaveTreeObject", atomDTO); return(result); } catch (Exception ex) { } return(null); }
public static async Task<FormationTree> SaveTreeObject(IHubProxy HubProxy, FormationTree atomDTO) { try { FormationTree result = await HubProxy.Invoke<FormationTree>("SaveTreeObject", atomDTO); return result; } catch (Exception ex) { } return null; }