protected virtual void OnSendItemIdToTemplate(SendItemIdEventArgs e) { SendItemIdEventHandler handler = SendItemIdToTemplate; if (handler != null) { handler(this, e); } }
private void SendItemIdToTemplateToolStripMenuItem_Click(object sender, EventArgs e) { // Read the ItemId, then open template selector specifying ItemId SendItemIdEventArgs sItemId = ReadItemId(richTextBoxXml); if (String.IsNullOrEmpty(sItemId.FolderId) && String.IsNullOrEmpty(sItemId.ItemId)) { System.Windows.Forms.MessageBox.Show("Unable to read ItemId.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } OnSendItemIdToTemplate(sItemId); }
private void xmlEditorResponse_SendItemIdToTemplate(object sender, SendItemIdEventArgs e) { xmlEditorRequest.Text = LoadTemplate(e.ItemId, e.FolderId); }