public AddRemoteWindow(RemoteConfig config)
        {
            InitializeComponent();
            DataContext = this;
            Config      = config;

            RemoteName.Value   = config.Name;
            RemoteURI.Value    = config.Remote.ToString();
            ExtraHeaders.Value = config.ExtraHeaders == null ? "" : string.Join(Environment.NewLine, config.ExtraHeaders);

            Title         = MainWindow.GetLocalized("AddRemote_EditTitle");
            text_add.Text = MainWindow.GetLocalized("AddRemote_EditSave");
        }
Пример #2
0
        public AddRemoteWindow(RemoteConfig config)
        {
            InitializeComponent();
            DataContext = this;
            Config      = config;

            RemoteName.Value    = config.Name;
            RemoteURI.Value     = config.Remote.ToString();
            EnablePadding.Value = config.Padding;

            Title         = MainWindow.GetLocalized("AddRemote_EditTitle");
            text_add.Text = MainWindow.GetLocalized("AddRemote_EditSave");
        }