Beispiel #1
0
        /// <summary>
        /// 预览数据
        /// </summary>
        private void ViewData()
        {
            if (dgvContacts.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择要预览的数据!");
                return;
            }
            string cont_id = ContactsID;

            if (string.IsNullOrEmpty(cont_id))
            {
                return;
            }
            UCContactsView view = new UCContactsView(cont_id);

            base.addUserControl(view, "联系人档案-预览", "UCContactsView" + cont_id, this.Tag.ToString(), this.Name);
        }
 /// <summary>
 /// 预览数据
 /// </summary>
 private void ViewData()
 {
     if (dgvContacts.CurrentRow == null)
     {
         MessageBoxEx.Show("请选择要预览的数据!");
         return;
     }
     string cont_id = ContactsID;
     if (string.IsNullOrEmpty(cont_id))
     {
         return;
     }
     UCContactsView view = new UCContactsView(cont_id);
     base.addUserControl(view, "联系人档案-预览", "UCContactsView" + cont_id, this.Tag.ToString(), this.Name);
 }