/* * private void menuItemViewSheet_Click(object sender,EventArgs e) { * long sheetNum=(long)gridMain.Rows[gridMain.SelectedIndices[0]].Tag; * Sheet sheet=Sheets.GetSheet(sheetNum); * FormSheetFillEdit FormSF=new FormSheetFillEdit(sheet); * FormSF.ShowDialog(); * } * * private void menuItemImportSheet_Click(object sender,EventArgs e) { * long sheetNum=(long)gridMain.Rows[gridMain.SelectedIndices[0]].Tag; * Sheet sheet=Sheets.GetSheet(sheetNum); * FormSheetImport formSI=new FormSheetImport(); * formSI.SheetCur=sheet; * formSI.ShowDialog(); * }*/ private void menuItemViewAllSheets_Click(object sender, EventArgs e) { long sheetNum = (long)gridMain.Rows[gridMain.SelectedIndices[0]].Tag; Sheet sheet = Sheets.GetSheet(sheetNum); FormPatientForms formP = new FormPatientForms(); formP.PatNum = sheet.PatNum; formP.ShowDialog(); }
private void butPatForms_Click(object sender, EventArgs e) { if (gridMain.GetSelectedIndex() < 0) { return; } FormPatientForms formPF = new FormPatientForms(); SheetDevice device = (SheetDevice)gridMain.ListGridRows[gridMain.GetSelectedIndex()].Tag; formPF.PatNum = device.PatNum == 0?FormOpenDental.CurPatNum:device.PatNum; formPF.ShowDialog(); FillPat(); }
private void OnForm_Click() { FormPatientForms formP=new FormPatientForms(); formP.PatNum=CurPatNum; formP.ShowDialog(); //if(ContrAccount2.Visible || ContrChart2.Visible//The only two modules where a new form would show. // || ContrFamily2.Visible){//patient info //always refresh, especially to get the titlebar right after an import. Patient pat=Patients.GetPat(CurPatNum); RefreshCurrentModule(); FillPatientButton(CurPatNum,pat.GetNameLF(),pat.Email!="",pat.ChartNumber,pat.SiteNum); //} }
/* private void menuItemViewSheet_Click(object sender,EventArgs e) { long sheetNum=(long)gridMain.Rows[gridMain.SelectedIndices[0]].Tag; Sheet sheet=Sheets.GetSheet(sheetNum); FormSheetFillEdit FormSF=new FormSheetFillEdit(sheet); FormSF.ShowDialog(); } private void menuItemImportSheet_Click(object sender,EventArgs e) { long sheetNum=(long)gridMain.Rows[gridMain.SelectedIndices[0]].Tag; Sheet sheet=Sheets.GetSheet(sheetNum); FormSheetImport formSI=new FormSheetImport(); formSI.SheetCur=sheet; formSI.ShowDialog(); }*/ private void menuItemViewAllSheets_Click(object sender,EventArgs e) { long sheetNum=(long)gridMain.Rows[gridMain.SelectedIndices[0]].Tag; Sheet sheet=Sheets.GetSheet(sheetNum); FormPatientForms formP=new FormPatientForms(); formP.PatNum=sheet.PatNum; formP.ShowDialog(); }