private void copyAllToolStripMenuItem_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; Clipboard.SetText(UtilityRighClick.dataToCopyPastListViewItems(lstTransactions, false)); //Clipboard.SetText(UtilityRighClick.dataToCopyPasteBufferAll(dbcTransactions.getDT())); this.Cursor = Cursors.Default; }
private void cmsLstFundCopyAll_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; ArrayList arrTemp = new ArrayList(); arrTemp.Add("TransFundID\tFund\tDept\tProject\tClass\tSalary\tCount"); arrTemp.AddRange(arrLstFunds); Clipboard.SetText(UtilityRighClick.dataToCopyPasteBufferAll(arrTemp)); this.Cursor = Cursors.Default; }
private void copySelectedToolStripMenuItem_Click(object sender, EventArgs e) { String selectedIndices = ""; for (int i = 0; i < lstPayroll.SelectedItems.Count; i++) { if (i != 0) { selectedIndices += "\t"; } //add column delimiter String wholeName = lstPayroll.SelectedItems[i].Name.ToString(); selectedIndices += wholeName.Substring(0, wholeName.IndexOf('!')); } Clipboard.SetText(UtilityRighClick.dataToCopyPasteBufferSelected(dbcPayroll.getDT(), selectedIndices.Split('\t'))); }
private void calculateSelectedToolStripMenuItem_Click(object sender, EventArgs e) { txttemsCalc.Text = String.Format(nfi, "{0:c}", UtilityRighClick.calcSelected(lstTransactions.SelectedItems, 7)); }
private void copySelectedToolStripMenuItem_Click(object sender, EventArgs e) { Clipboard.SetText(UtilityRighClick.dataToCopyPastListViewItems(lstTransactions, true)); }
private void copyAllToolStripMenuItem_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; Clipboard.SetText(UtilityRighClick.dataToCopyPasteBufferAll(dbcPayroll.getDT())); this.Cursor = Cursors.Default; }