Exemplo n.º 1
0
 public ThreadServiceHost(Shell shell, List<ThreadServiceHost> hostList, DataServiceConfig serviceConfig)
 {
     _shell = shell;
     _hostList = hostList;
     _serviceConfig = serviceConfig;
 }
Exemplo n.º 2
0
        private void bbiAddNewService_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var obj = new DataServiceConfig();

            var dlg = CreateConfigDialog();
            dlg.DataServiceConfig = obj;
            dlg.Text = "添加服务配置";
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                this.bsService.Add(obj);
                this.bsService.EndEdit();
                DataServiceConfigCollection.Current.Save();
            }

            this.RefreshUI();
        }