示例#1
0
        private void updateRemarks(int index)
        {
            if (index < 0)
            {
                return;
            }
            var source = _sources[index];
            StringSettingClient client = new StringSettingClient(source.Remarks, "备注:", "修改备注");

            if (client.ShowDialog().Value)
            {
                source.Remarks = client.Data;
                updateSource(source);
            }
        }
示例#2
0
        private void updateUrlFromSource(TrackSourceInfo source, string defaultConfig = "")
        {
            string config = source.Setting;

            if (string.IsNullOrWhiteSpace(config))
            {
                config = defaultConfig;
            }
            StringSettingClient menu = new StringSettingClient(config, "Url配置:");

            if (menu.ShowDialog().Value)
            {
                source.Setting = menu.Data;
                if (source.IsEnable)
                {
                    updateSource(source);
                }
            }
        }