///
/// Copyright © 2003-2008 JetBrains s.r.o.
/// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder).
///
namespace JetBrains.Omea.OpenAPI
{
///
/// Set of predefined named for tabs in ContactEdit form.
///
public class ContactTabNames
{
public const string GeneralTab = "Contact";
public const string PersonalTab = "Personal Information";
public const string MailingTab = "Mailing Address";
}
///
/// Allows to register custom blocks shown in contact display and edit panes.
///
public interface IContactService
{
///
/// Registers a custom block shown in contact display pane.
///
/// The index of the column where the block is displayed.
/// The position of the block relative to other blocks.
/// The ID of the block.
/// The delegate for creating instances of the block.
void RegisterContactEditBlock( int column, ListAnchor anchor, string blockId, ContactBlockCreator blockCreator );
///
/// Registers a custom block shown in contact edit pane.
///
/// The name of the tab where the block is displayed.
/// The position of the block relative to other blocks.
/// The ID of the block.
/// The delegate for creating instances of the block.
void RegisterContactEditBlock(string tabName, ListAnchor anchor, string blockId, ContactBlockCreator blockCreator);
}
///
/// Represents the method which creates an instance of
/// for showing in contact display and edit panes.
///
public delegate AbstractContactViewBlock ContactBlockCreator();
}