Exemplo n.º 1
0
        public static DialogResult showPopAddTenant(IWin32Window host, ref DataTable dtTemp, int room_id)
        {
            PopupAddTenant sPopup = new PopupAddTenant();

            //
            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.RoommateTableTemp = dtTemp;
            sPopup.room_id           = room_id;
            //
            DialogResult dl = sPopup.ShowDialog(host);

            //
            sPopup.Dispose();
            //
            return(dl);
        }
Exemplo n.º 2
0
 public static DialogResult showPopAddTenant(IWin32Window host, ref DataTable dtTemp, int room_id)
 {
     PopupAddTenant sPopup = new PopupAddTenant();
     //
     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.RoommateTableTemp = dtTemp;
     sPopup.room_id = room_id;
     //
     DialogResult dl = sPopup.ShowDialog(host);
     //
     sPopup.Dispose();
     //
     return dl;
 }