Example #1
0
        public static DataTable showPopAddInvoiceExpense(IWin32Window host, DataTable dtTemp)
        {
            PopUpInvoiceItem sPopup = new PopUpInvoiceItem();

            //
            sPopup.ShowIcon      = false;
            sPopup.ShowInTaskbar = false;
            sPopup.HelpButton    = false;
            sPopup.MinimizeBox   = false;
            sPopup.MaximizeBox   = false;
            sPopup.MaximumSize   = sPopup.MinimumSize = sPopup.Size;
            sPopup.StartPosition = FormStartPosition.CenterScreen;
            //
            sPopup.dtItemTemp = dtTemp;
            //
            DialogResult dl = sPopup.ShowDialog(host);
            //
            DataTable drReturn = sPopup.dtItemTemp;

            //
            sPopup.Dispose();
            //
            return(drReturn);
        }
Example #2
0
 public static DataTable showPopAddInvoiceExpense(IWin32Window host, DataTable dtTemp)
 {
     PopUpInvoiceItem sPopup = new PopUpInvoiceItem();
     //
     sPopup.ShowIcon = false;
     sPopup.ShowInTaskbar = false;
     sPopup.HelpButton = false;
     sPopup.MinimizeBox = false;
     sPopup.MaximizeBox = false;
     sPopup.MaximumSize = sPopup.MinimumSize = sPopup.Size;
     sPopup.StartPosition = FormStartPosition.CenterScreen;
     //
     sPopup.dtItemTemp = dtTemp;
     //
     DialogResult dl = sPopup.ShowDialog(host);
     //
     DataTable drReturn = sPopup.dtItemTemp;
     //
     sPopup.Dispose();
     //
     return drReturn;
 }