public AddEditServerSource(MainWindow mainWindow, IServer server) { InitializeComponent(); //busyIndicator.IsBusy = true; this.serverOptions = new SourceServerOptions(); if (server == null) { this.server = new SourceServer(); } else { this.server = server; this.server.Options.CloneObjectProps(serverOptions); } this.InitializeFields(); this.mainWindow = mainWindow; DataContext = serverOptions; }
public SourceServer() { _logger = HldslLogManager.GetLogManager().GetCurrentClassLogger(); Options = new SourceServerOptions(); }