Форма редактора тег лайна.
Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
 private static bool EditTagLine(IServiceProvider provider, TagLineInfo tgi)
 {
     using (var tlef = new TagLineEditorForm(
                provider,
                GetExcludeHash(
                    provider.GetRequiredService <ITagLineListFormService>().TagLines, tgi)))
     {
         tlef.TagLineName   = tgi.Name;
         tlef.TagLineFormat = tgi.Format;
         tlef.Forums        = tgi.Forums;
         if (tlef.ShowDialog(
                 provider
                 .GetRequiredService <IUIShell>()
                 .GetMainWindowParent()) == DialogResult.OK)
         {
             tgi.Name   = tlef.TagLineName;
             tgi.Format = tlef.TagLineFormat;
             tgi.Forums = tlef.Forums;
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 2
0
		private static bool EditTagLine(IServiceProvider provider, TagLineInfo tgi)
		{
			using (var tlef = new TagLineEditorForm(
				provider,
				GetExcludeHash(
					provider.GetRequiredService<ITagLineListFormService>().TagLines, tgi)))
			{
				tlef.TagLineName = tgi.Name;
				tlef.TagLineFormat = tgi.Format;
				tlef.Forums = tgi.Forums;
				if (tlef.ShowDialog(
						provider
							.GetRequiredService<IUIShell>()
							.GetMainWindowParent()) == DialogResult.OK)
				{
					tgi.Name = tlef.TagLineName;
					tgi.Format = tlef.TagLineFormat;
					tgi.Forums = tlef.Forums;
					return true;
				}
			}
			return false;
		}