当前位置: 首页>>代码示例>>C#>>正文


C# CmsWebServiceClient.SaveIsActiveEquipmentStateAsync方法代码示例

本文整理汇总了C#中CmsWebServiceClient.SaveIsActiveEquipmentStateAsync方法的典型用法代码示例。如果您正苦于以下问题:C# CmsWebServiceClient.SaveIsActiveEquipmentStateAsync方法的具体用法?C# CmsWebServiceClient.SaveIsActiveEquipmentStateAsync怎么用?C# CmsWebServiceClient.SaveIsActiveEquipmentStateAsync使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CmsWebServiceClient的用法示例。


在下文中一共展示了CmsWebServiceClient.SaveIsActiveEquipmentStateAsync方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ReinstateElectrical

 private void ReinstateElectrical(QuickElectrical quickElectrical)
 {
     var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
         cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) => { mViewModel.ProcessSearchFilter(); };
         cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.ElectricalEquipment, quickElectrical.Id, true, CMS.User.Id);
 }
开发者ID:barrett2474,项目名称:CMS2,代码行数:6,代码来源:ElectricalNavigationControl.xaml.cs

示例2: RemovePipe

        private void RemovePipe(QuickPipe quickPipe)
        {
            if (!CMS.EffectivePrivileges.PipeTab.CanDelete && !CMS.EffectivePrivileges.AdminTab.CanModify)
            {
                return;
            }

            var popupDialog = new AddPipeRevisionHistoryDialog(quickPipe.Id, quickPipe.Name);
            popupDialog.Show();
            popupDialog.Closed +=
                (s2, e2) =>
                {
                    if (popupDialog.DialogResult.HasValue && popupDialog.DialogResult.Value)
                    {
                        var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
                        cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) =>
                        {
                            //Calls MainPage.CloseTab()
                            EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(quickPipe);
                        };
                        cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.Pipe, quickPipe.Id, false, CMS.User.Id);
                    }

                };
        }
开发者ID:barrett2474,项目名称:CMS2,代码行数:25,代码来源:MainPage.xaml.cs

示例3: RemoveMechanicalEquipment

        private void RemoveMechanicalEquipment(QuickMechanical quickMechanical)
        {
            if (!CMS.EffectivePrivileges.MechanicalTab.CanDelete && !CMS.EffectivePrivileges.AdminTab.CanModify)
            {
                return;
            }

            //PopupDialog popupDialog = new PopupDialog(PopupDialogType.ConfirmDelete,
            //                                          String.Format("Delete '{0}' Mechanical Equipment?", quickMechanical.Name));

            var dialog = new AddMechanicalRevisionHistoryDialog(quickMechanical.Id, quickMechanical.Name);
            dialog.Show();
            dialog.Closed +=
                (s1, e1) =>
                {
                    if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
                    {
                        var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
                        cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) =>
                        {
                            //Calls MainPage.CloseTab()
                            EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(quickMechanical);
                        };
                        cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.MechanicalEquipment, quickMechanical.Id, false, CMS.User.Id);
                    }
                };
        }
开发者ID:barrett2474,项目名称:CMS2,代码行数:27,代码来源:MainPage.xaml.cs

示例4: RemoveButtonHandler

 private void RemoveButtonHandler(object parameter)
 {
     var popupDialog = new AddInstrumentRevisionHistoryDialog(Instrument.Id, Instrument.Name);
     popupDialog.Show();
     popupDialog.Closed +=
         (s2, e2) =>
         {
             if (popupDialog.DialogResult.HasValue && popupDialog.DialogResult.Value)
             {
                 var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
                 cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s1, e1) =>
                 {
                     //Calls mainpage.CloseTab();
                     EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(new QuickInstrument {Id = Instrument.Id, Name = Instrument.Name});
                     EventAggregator.GetEvent<PrismEvents.RefreshNavigationEvent>().Publish(new QuickInstrument());
                 };
                 cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.Instrument, Instrument.Id, false, CMS.User.Id);
             }
         };
 }
开发者ID:barrett2474,项目名称:CMS2,代码行数:20,代码来源:InstrumentControlViewModel.cs

示例5: ReinstateControlSystem

 private void ReinstateControlSystem(QuickControlSystem quickControlSystem)
 {
     CmsWebServiceClient cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
     cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) =>
     {
         quickControlSystem.IsActive = true;
         EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(quickControlSystem);
     };
     cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.Control, quickControlSystem.Id, true, CMS.User.Id);
 }
开发者ID:barrett2474,项目名称:CMS2,代码行数:10,代码来源:ControlSystemNavigationView.xaml.cs

示例6: DeleteCommandHandler

 private void DeleteCommandHandler(object parameter)
 {
     var popupDialog = new AddControlSystemRevisionHistoryDialog(ControlSystem.Id, ControlSystem.Name);
     popupDialog.Show();
     popupDialog.Closed +=
         (s2, e2) =>
         {
             if (popupDialog.DialogResult.HasValue && popupDialog.DialogResult.Value)
             {
                 var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
                 cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) =>
                 {
                     //Calls MainPage.CloseTab()
                     EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(new QuickControlSystem {Id = ControlSystem.Id, Name = ControlSystem.Name});
                     EventAggregator.GetEvent<PrismEvents.RefreshNavigationEvent>().Publish(new QuickControlSystem());
                 };
                 cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.Control, ControlSystem.Id, false, CMS.User.Id);
             }
         };
 }
开发者ID:barrett2474,项目名称:CMS2,代码行数:20,代码来源:ControlSystemViewModel.cs


注:本文中的CmsWebServiceClient.SaveIsActiveEquipmentStateAsync方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。