示例#1
0
        private void OpenBrowser()
        {
            OpenDental.WebSheets.webforms_sheetdef WebSheetDef = (OpenDental.WebSheets.webforms_sheetdef)gridMain.Rows[gridMain.SelectedIndices[0]].Tag;
            String SheetFormAddress = SheetDefAddress + "?DentalOfficeID=" + DentalOfficeID + "&WebSheetDefID=" + WebSheetDef.WebSheetDefID;

            System.Diagnostics.Process.Start(SheetFormAddress);
        }
示例#2
0
        private void menuItemCopyURL_Click(object sender, EventArgs e)
        {
            OpenDental.WebSheets.webforms_sheetdef WebSheetDef = (OpenDental.WebSheets.webforms_sheetdef)gridMain.Rows[gridMain.SelectedIndices[0]].Tag;
            String SheetFormAddress = SheetDefAddress + "?DentalOfficeID=" + DentalOfficeID + "&WebSheetDefID=" + WebSheetDef.WebSheetDefID;

            Clipboard.SetText(SheetFormAddress);
        }
示例#3
0
 private void butDelete_Click(object sender, EventArgs e)
 {
     if (gridMain.GetSelectedIndex() == -1)
     {
         MsgBox.Show(this, "Please select an item from the grid first.");
         return;
     }
     Cursor = Cursors.WaitCursor;
     if (!TestWebServiceExists())
     {
         Cursor = Cursors.Default;
         MsgBox.Show(this, "Either the web service is not available or the WebHostSynch URL is incorrect");
         return;
     }
     OpenDental.WebSheets.webforms_sheetdef wf_sheetDef = (OpenDental.WebSheets.webforms_sheetdef)gridMain.Rows[gridMain.SelectedIndices[0]].Tag;
     wh.DeleteSheetDef(RegistrationKey, wf_sheetDef.WebSheetDefID);
     FillGrid();
     Cursor = Cursors.Default;
 }