コード例 #1
0
        public void PublishToServer()
        {
            AENavigatorComponent aeNavigator = new AENavigatorComponent();

            aeNavigator.IsReadOnly             = true;
            aeNavigator.ShowCheckBoxes         = false;
            aeNavigator.ShowLocalDataStoreNode = false;
            aeNavigator.ShowTitlebar           = false;
            aeNavigator.ShowTools = false;

            SimpleComponentContainer dialogContainer = new SimpleComponentContainer(aeNavigator);
            DialogBoxAction          code            = this.Host.DesktopWindow.ShowDialogBox(dialogContainer, SR.SelectDestination);

            if (code != DialogBoxAction.Ok)
            {
                return;
            }

            if (aeNavigator.SelectedServers == null || aeNavigator.SelectedServers.Servers == null || aeNavigator.SelectedServers.Servers.Count == 0)
            {
                return;
            }

            if (aeNavigator.SelectedServers.Servers.Count < 1)
            {
                return;
            }

            BackgroundTask task = new BackgroundTask(
                delegate {
                foreach (Server destinationAE in aeNavigator.SelectedServers.Servers)
                {
                    _studyBuilder.Publish(ServerTree.GetClientAETitle(), destinationAE.AETitle, destinationAE.Host, destinationAE.Port);
                }
            }, false);

            ProgressDialog.Show(task, base.Host.DesktopWindow, true, ProgressBarStyle.Marquee);
        }
コード例 #2
0
ファイル: StudyComposerComponent.cs プロジェクト: nhannd/Xian
		public void PublishToServer()
		{
			AENavigatorComponent aeNavigator = new AENavigatorComponent();
			aeNavigator.IsReadOnly = true;
			aeNavigator.ShowCheckBoxes = false;
			aeNavigator.ShowLocalDataStoreNode = false;
			aeNavigator.ShowTitlebar = false;
			aeNavigator.ShowTools = false;

			SimpleComponentContainer dialogContainer = new SimpleComponentContainer(aeNavigator);
			DialogBoxAction code = this.Host.DesktopWindow.ShowDialogBox(dialogContainer, SR.SelectDestination );

			if (code != DialogBoxAction.Ok)
				return;

			if (aeNavigator.SelectedServers == null || aeNavigator.SelectedServers.Servers == null || aeNavigator.SelectedServers.Servers.Count == 0) {
				return;
			}

			if (aeNavigator.SelectedServers.Servers.Count < 1) {
				return;
			}

			BackgroundTask task = new BackgroundTask(
				delegate {
					foreach (Server destinationAE in aeNavigator.SelectedServers.Servers) {
						_studyBuilder.Publish(ServerTree.GetClientAETitle(), destinationAE.AETitle, destinationAE.Host, destinationAE.Port);
					}
				}, false);

			ProgressDialog.Show(task, base.Host.DesktopWindow, true, ProgressBarStyle.Marquee);
		}