本文整理汇总了C#中ISilDataAccess.AddNotification方法的典型用法代码示例。如果您正苦于以下问题:C# ISilDataAccess.AddNotification方法的具体用法?C# ISilDataAccess.AddNotification怎么用?C# ISilDataAccess.AddNotification使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISilDataAccess
的用法示例。
在下文中一共展示了ISilDataAccess.AddNotification方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AtomicReferenceSlice
/// -----------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="AtomicReferenceSlice"/> class.
/// </summary>
/// -----------------------------------------------------------------------------------
public AtomicReferenceSlice(FdoCache cache, ICmObject obj, int flid,
XmlNode configurationNode, IPersistenceProvider persistenceProvider,
Mediator mediator, StringTable stringTbl)
: base(cache, obj, flid, configurationNode, persistenceProvider, mediator, stringTbl)
{
m_sda = m_cache.MainCacheAccessor;
m_sda.AddNotification(this);
}
示例2: SyncWatcher
/// <summary>
/// Create one.
/// </summary>
/// <param name="cache"></param>
/// <param name="appGuid"></param>
public SyncWatcher(FdoCache cache, Guid appGuid)
{
m_cache = cache;
m_appGuid = appGuid;
m_sda = m_cache.MainCacheAccessor;
m_sda.AddNotification(this);
}
示例3: Init
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializer
/// </summary>
/// <param name="cache">The instance of the DB connection representing the channel
/// through which notifications come</param>
/// <param name="tag">The property tag that the caller wants to be notified about
/// </param>
/// ------------------------------------------------------------------------------------
internal void Init(FdoCache cache, int tag)
{
m_cache = cache;
if (cache.AddChangeWatcher(this))
{
m_sda = m_cache.MainCacheAccessor;
m_sda.AddNotification(this); // register this in the ISilDataAccess
}
m_Tag = tag;
}
示例4: CreateModifyTimeManager
/// <summary>
/// Create one and install it to work on a particular cache.
/// </summary>
/// <param name="cache"></param>
public CreateModifyTimeManager(FdoCache cache)
{
m_cache = cache;
Debug.Assert(cache.CreateModifyManager == null);
cache.CreateModifyManager = this;
m_sda = cache.MainCacheAccessor;
m_sda.AddNotification(this);
m_mdc = cache.MetaDataCacheAccessor;
}
示例5: Init
public void Init(Mediator mediator, IFsFeatStruc fs)
{
CheckDisposed();
m_fs = fs;
m_fdoCache = (FdoCache)mediator.PropertyTable.GetValue("cache");
UpdateRootObject();
m_sda = m_fdoCache.MainCacheAccessor;
m_sda.AddNotification(this);
}
示例6: Init
public void Init(Mediator mediator, XmlNode configurationParameters)
{
CheckDisposed();
m_mediator = mediator;
m_cache = (FdoCache) m_mediator.PropertyTable.GetValue("cache");
mediator.AddColleague(this);
m_sda = m_cache.MainCacheAccessor;
m_sda.AddNotification(this);
}
示例7: Install
/// <summary>
/// Called when the slice is first created, but also when it is
/// "reused" (e.g. refresh or new target object)
/// </summary>
/// <param name="parent"></param>
public override void Install(DataTree parent)
{
CheckDisposed();
base.Install(parent);
if (m_cb.Dock != DockStyle.Left)
m_cb.Dock = System.Windows.Forms.DockStyle.Left;
if (m_cb.Width != 20)
m_cb.Width = 20; // was taking whole length of slice
m_sda = Cache.DomainDataByFlid;
m_sda.AddNotification(this);
}
示例8: FwLabel
/// ------------------------------------------------------------------------------------
/// <summary>
/// Default Constructor
/// </summary>
/// ------------------------------------------------------------------------------------
public FwLabel()
{
m_innerFwTextBox = new InnerFwTextBox();
m_innerFwTextBox.ReadOnlyView = true;
Padding = new Padding(1, 2, 1, 1);
Controls.Add(m_innerFwTextBox);
// This causes us to get a notification when the string gets changed,
// so we can fire our TextChanged event.
m_sda = m_innerFwTextBox.DataAccess;
m_sda.AddNotification(this);
m_innerFwTextBox.AdjustStringHeight = false;
}
示例9: BasicIPASymbolSlice
/// <summary>
/// Constructor invoked via the editor="customWithParams" slice XML configuration
/// </summary>
/// <param name="cache"></param>
/// <param name="editor"></param>
/// <param name="flid"></param>
/// <param name="node"></param>
/// <param name="obj"></param>
/// <param name="stringTbl"></param>
/// <param name="persistenceProvider"></param>
/// <param name="ws"></param>
public BasicIPASymbolSlice(FdoCache cache, string editor, int flid,
System.Xml.XmlNode node, ICmObject obj, StringTable stringTbl,
IPersistenceProvider persistenceProvider, int ws)
: base(obj.Hvo, flid, ws)
{
m_obj = obj; // is PhPhoneme
//m_persistenceProvider = persistenceProvider;
m_ws = ws;
//m_node = node;
m_configurationNode = node;
m_sda = cache.MainCacheAccessor;
m_sda.AddNotification(this);
this.Disposed += new EventHandler(BasicIPASymbolSlice_Disposed);
m_IPAMapperDocument = new XmlDocument();
string sIPAMapper = Path.Combine(DirectoryFinder.TemplateDirectory, PhPhoneme.ksBasicIPAInfoFile);
m_IPAMapperDocument.Load(sIPAMapper);
}
示例10: Initialize
public override void Initialize(FdoCache cache, ICmObject obj, int flid, string fieldName, IPersistenceProvider persistProvider, XCore.Mediator mediator, string displayNameProperty, string displayWs)
{
base.Initialize(cache, obj, flid, fieldName, persistProvider, mediator, displayNameProperty, displayWs);
m_sda = m_cache.MainCacheAccessor;
m_sda.AddNotification(this);
}
示例11: SandboxEditMonitor
internal SandboxEditMonitor(SandboxBase sandbox)
{
m_sandbox = sandbox;
m_sda = sandbox.Caches.DataAccess;
m_hvoSbWord = m_sandbox.RootWordHvo;
m_sda.AddNotification(this);
}
示例12: UpdateDisplayFromDatabase
protected override void UpdateDisplayFromDatabase()
{
m_sda = m_cache.MainCacheAccessor;
m_sda.RemoveNotification(this); // Just in case...
m_sda.AddNotification(this);
}
示例13: FwComboBoxBase
/// <summary>
/// Construct one.
/// </summary>
public FwComboBoxBase()
{
if (Application.RenderWithVisualStyles)
DoubleBuffered = true;
SuspendLayout();
// Set this box's own properties (first, as we use some of them in figuring the
// size of other things).
// Make and install the ComboTextBox
m_comboTextBox = new ComboTextBox(this);
m_comboTextBox.AccessibleName = "TextBox";
m_comboTextBox.Dock = DockStyle.Fill;
m_comboTextBox.Visible = true;
// This causes us to get a notification when the string gets changed, so we can fire our
// TextChanged event.
m_sda = m_comboTextBox.DataAccess;
m_sda.AddNotification(this);
m_comboTextBox.KeyDown += m_comboTextBox_KeyDown;
m_comboTextBox.MouseDown += m_comboTextBox_MouseDown;
m_comboTextBox.GotFocus += m_comboTextBox_GotFocus;
m_comboTextBox.LostFocus += m_comboTextBox_LostFocus;
m_comboTextBox.TabIndex = 1;
m_comboTextBox.TabStop = true;
m_textBoxPanel = new Panel();
m_textBoxPanel.AccessibleName = "TextBoxPanel";
m_textBoxPanel.Dock = DockStyle.Fill;
m_textBoxPanel.BackColor = Color.Transparent;
m_textBoxPanel.Controls.Add(m_comboTextBox);
Controls.Add(m_textBoxPanel);
// Make and install the button that pops up the list.
m_button = new DropDownButton(this);
m_button.AccessibleName = "DropDownButton";
m_button.Dock = DockStyle.Right; // Enhance JohnT: Left if RTL language?
m_button.TabStop = false;
//m_button.FlatStyle = FlatStyle.Flat; // no raised edges etc for this button.
//// m_button.Click += new EventHandler(m_button_Click);
m_button.MouseDown += m_button_MouseDown;
m_button.KeyDown += m_button_KeyDown;
m_button.GotFocus += m_button_GotFocus;
m_button.LostFocus += m_button_LostFocus;
m_buttonPanel = new Panel();
m_buttonPanel.AccessibleName = "DropDownButtonPanel";
m_buttonPanel.Dock = DockStyle.Right;
m_buttonPanel.BackColor = Color.Transparent;
m_buttonPanel.Controls.Add(m_button);
Controls.Add(m_buttonPanel);
HasBorder = true;
Padding = new Padding(Application.RenderWithVisualStyles ? 2 : 1);
base.BackColor = SystemColors.Window;
m_buttonPanel.Width = m_button.PreferredWidth + m_buttonPanel.Padding.Horizontal;
m_dropDownBox = CreateDropDownBox();
m_dropDownBox.Form.VisibleChanged += Form_VisibleChanged;
ResumeLayout();
}
示例14: FwListBox
/// ------------------------------------------------------------------------------------
/// <summary>
/// Default Constructor.
/// </summary>
/// ------------------------------------------------------------------------------------
public FwListBox()
{
m_items = new ObjectCollection(this);
m_innerFwListBox = new InnerFwListBox(this);
m_innerFwListBox.Dock = DockStyle.Fill;
m_innerFwListBox.ReadOnlyView = true; // ComboBoxStyle is always DropDownList.
this.BorderStyle = BorderStyle.Fixed3D;
this.Controls.Add(m_innerFwListBox);
// This causes us to get a notification when the string gets changed.
m_sda = m_innerFwListBox.DataAccess;
m_sda.AddNotification(this);
// This makes it, by default if the container's initialization doesn't change it,
// the same default size as a standard list box.
this.Size = new Size(120,84);
// And, if not changed, it's background color is white.
this.BackColor = SystemColors.Window;
m_SelectedIndex = -1; // initially nothing selected.
m_HighlightedIndex = -1; // nor highlighted.
}
示例15: NotifyChangeSpy
public NotifyChangeSpy(ISilDataAccess sda)
{
m_sda = sda;
m_sda.AddNotification(this);
}