Exemplo n.º 1
0
 private void btnSharepoint_Click(object sender, EventArgs e)
 {
     using (SharePointMgr.frmSharePointMgr SharePointManager = new SharePointMgr.frmSharePointMgr(Connection, DevXMgr, "Contractor Invoice", "Contractor Invoice", "", "Header", _DetailID))
     {
         SharePointManager.ReadOnly = _ReadOnly;
         SharePointManager.ShowDialog();
         SharePointManager.Dispose();
         SharePointMgr.cSharePointMgr.UpdateButton(Connection, "Contractor Invoice", ref btnSharepoint, "Header", _DetailID);
     }
 }
Exemplo n.º 2
0
        private void riSharepoint_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            DataRow dr = gvSearch.GetDataRow(gvSearch.FocusedRowHandle);

            if (dr != null)
            {
                object oID = dr["id"];
                if (oID != null && oID != DBNull.Value && Convert.ToInt32(oID) != 0)
                {
                    using (SharePointMgr.frmSharePointMgr SharePointManager = new SharePointMgr.frmSharePointMgr(Connection, DevXMgr, "Supplier Compliance", "Supplier Compliance", "", "Header", Convert.ToInt32(oID)))
                    {
                        SharePointManager.ReadOnly = false;
                        SharePointManager.ShowDialog();
                        SharePointManager.Dispose();
                    }
                }
            }
        }