Exemplo n.º 1
0
        public static DataTable showPopAddExpense(IWin32Window host, DataTable dtTemp)
        {
            PopUpAddtionalItem sPopup = new PopUpAddtionalItem();

            //
            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);
        }
Exemplo n.º 2
0
        public static DataTable showPopAddExpense(IWin32Window host, DataTable dtTemp)
        {
            PopUpAddtionalItem sPopup = new PopUpAddtionalItem();
            //
            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;
        }