예제 #1
0
        public static DataTable showPopAddRecieptExpense(IWin32Window host, DataTable dtTemp)
        {
            PopUpRecieptItem sPopup = new PopUpRecieptItem();

            //
            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);
        }
예제 #2
0
 public static DataTable showPopAddRecieptExpense(IWin32Window host, DataTable dtTemp)
 {
     PopUpRecieptItem sPopup = new PopUpRecieptItem();
     //
     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;
 }