Exemple #1
0
		public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
		{
			using (var tllf = new TagLineListForm(
					ApplicationManager.Instance.ServiceProvider, ((TagLineInfos)value).Infos))
			{
				if (tllf.ShowDialog(ApplicationManager.Instance.MainForm) == DialogResult.OK)
				{
					var tgis = new TagLineInfos { Infos = tllf.TagLines.ToArray() };
					return tgis;
				}
				return value;
			}
		}
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     using (var tllf = new TagLineListForm(
                ApplicationManager.Instance.ServiceProvider, ((TagLineInfos)value).Infos))
     {
         if (tllf.ShowDialog(ApplicationManager.Instance.MainForm) == DialogResult.OK)
         {
             var tgis = new TagLineInfos {
                 Infos = tllf.TagLines.ToArray()
             };
             return(tgis);
         }
         return(value);
     }
 }