예제 #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();
        }
예제 #2
0
 public frmActorEdit(FormationTree atomDTO)
 {
     InitializeComponent();
     this.Background = new LinearGradientBrush(Colors.AliceBlue, Colors.LightGray, 90);
     refAtomDTO = atomDTO;
     if (refAtomDTO == null) isNew = true;
 }
예제 #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);
        }
예제 #4
0
파일: SAGSignalR.cs 프로젝트: ohadmanor/TDS
 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;
 }