Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public frmActorEdit(FormationTree atomDTO)
 {
     InitializeComponent();
     this.Background = new LinearGradientBrush(Colors.AliceBlue, Colors.LightGray, 90);
     refAtomDTO = atomDTO;
     if (refAtomDTO == null) isNew = true;
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 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;
 }