private void listDaily_MouseDown(object sender, MouseEventArgs e) { int selected = listDaily.IndexFromPoint(e.Location); if (selected == -1) { return; } switch (selected) { case 0: //Adjustments FormRpAdjSheet FormAdjSheet = new FormRpAdjSheet(); FormAdjSheet.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports, 0, "Adjustments"); break; case 1: //Payments FormRpPaySheet FormPaySheet = new FormRpPaySheet(); FormPaySheet.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports, 0, "Daily Payments"); break; case 2: //Procedures FormRpProcSheet FormProcSheet = new FormRpProcSheet(); FormProcSheet.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports, 0, "Daily Procedures"); break; case 3: //Writeoffs FormRpWriteoffSheet FormW = new FormRpWriteoffSheet(); FormW.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports, 0, "Daily Writeoffs"); break; case 4: //Incomplete Procedure Notes FormRpProcNote FormPN = new FormRpProcNote(); FormPN.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports, 0, "Daily Procedure Notes"); break; case 5: //Routing Slips FormRpRouting FormR = new FormRpRouting(); FormR.ShowDialog(); break; } }
private void listDaily_MouseDown(object sender,MouseEventArgs e) { int selected=listDaily.IndexFromPoint(e.Location); if(selected==-1) { return; } switch(selected) { case 0://Adjustments FormRpAdjSheet FormAdjSheet=new FormRpAdjSheet(); FormAdjSheet.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports,0,"Adjustments"); break; case 1://Payments FormRpPaySheet FormPaySheet=new FormRpPaySheet(); FormPaySheet.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports,0,"Daily Payments"); break; case 2://Procedures FormRpProcSheet FormProcSheet=new FormRpProcSheet(); FormProcSheet.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports,0,"Daily Procedures"); break; case 3://Writeoffs FormRpWriteoffSheet FormW=new FormRpWriteoffSheet(); FormW.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports,0,"Daily Writeoffs"); break; case 4://Incomplete Procedure Notes FormRpProcNote FormPN=new FormRpProcNote(); FormPN.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Reports,0,"Daily Procedure Notes"); break; case 5://Routing Slips FormRpRouting FormR=new FormRpRouting(); FormR.ShowDialog(); break; } }