Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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')));
        }
Ejemplo n.º 4
0
 private void calculateSelectedToolStripMenuItem_Click(object sender, EventArgs e)
 {
     txttemsCalc.Text = String.Format(nfi, "{0:c}", UtilityRighClick.calcSelected(lstTransactions.SelectedItems, 7));
 }
Ejemplo n.º 5
0
 private void copySelectedToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Clipboard.SetText(UtilityRighClick.dataToCopyPastListViewItems(lstTransactions, true));
 }
Ejemplo n.º 6
0
 private void copyAllToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     Clipboard.SetText(UtilityRighClick.dataToCopyPasteBufferAll(dbcPayroll.getDT()));
     this.Cursor = Cursors.Default;
 }