示例#1
0
        protected virtual void OnSendItemIdToTemplate(SendItemIdEventArgs e)
        {
            SendItemIdEventHandler handler = SendItemIdToTemplate;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
        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);
        }
示例#3
0
 private void xmlEditorResponse_SendItemIdToTemplate(object sender, SendItemIdEventArgs e)
 {
     xmlEditorRequest.Text = LoadTemplate(e.ItemId, e.FolderId);
 }