public RTCServerView() { InitializeComponent(); startupValue = RTC_Config.LoadActiveConfig().DomainName; CurentDomain = startupValue; }
private void Save(Window window) { try { var config = RTC_Config.LoadActiveConfig(); if (DomainChanged) { config.DomainName = CurentDomain; config.Save(); } if (window != null) { window.Close(); } } catch (Exception ex) { StaticMethods.LogAndShow("Возникло исключение при сохранении RTC-сервера", ex); } }