示例#1
0
 public WebAppsDialog(Guid serverId)
 {
     InitializeComponent();
     _serverId          = serverId;
     _config            = MainWindow.Config;
     icApps.ItemsSource = _config.Config.ServerProfiles.FirstOrDefault(x => x.Id == serverId).Applications;
 }
示例#2
0
 public EditDefaultLocationDialog()
 {
     InitializeComponent();
     _config = MainWindow.Config;
     txtDefaultLocation.Text = _config.Config.DefaultServerLocation;
     txtDefaultLocation.SelectAll();
 }
 public AddWebAppDialog(ManageProcess process, Guid serverId = new Guid(), WebApp webAppForUpdate = null)
 {
     InitializeComponent();
     _config          = MainWindow.Config;
     _process         = process;
     _webAppForUpdate = webAppForUpdate;
     _serverId        = serverId;
     if (process == ManageProcess.Update)
     {
         txtWebAppName.Text = _webAppForUpdate.Name;
         txtFolderName.Text = _webAppForUpdate.FolderName;
     }
 }
示例#4
0
 public AddServerDialog(ManageProcess process, ServerProfile profileForUpdate = null)
 {
     InitializeComponent();
     _config  = MainWindow.Config;
     _process = process;
     this.profileForUpdate = profileForUpdate;
     if (process == ManageProcess.Update)
     {
         txtProfileName.Text = profileForUpdate.ProfileName;
         txtServerName1.Text = profileForUpdate.FirstServerName;
         txtServerName2.Text = profileForUpdate.SecondServerName;
     }
 }
示例#5
0
 public ServerProfilesDialog()
 {
     InitializeComponent();
     _config = MainWindow.Config;
     icServerProfiles.ItemsSource = _config.GetServerProfiles();
 }