예제 #1
0
        //

        public static DialogResult showPopupLogin(IWin32Window host)
        {
            loginform sPopup = new loginform();

            //
            sPopup.ShowIcon      = true;
            sPopup.ShowInTaskbar = true;
            sPopup.HelpButton    = false;

            sPopup.MinimizeBox   = false;
            sPopup.MaximizeBox   = false;
            sPopup.MaximumSize   = sPopup.MinimumSize = sPopup.Size;
            sPopup.StartPosition = FormStartPosition.CenterScreen;

            //
            DialogResult dl = sPopup.ShowDialog(host);

            //

            //
            sPopup.Dispose();
            //
            return(dl);
        }
예제 #2
0
        //
        public static DialogResult showPopupLogin(IWin32Window host)
        {
            loginform sPopup = new loginform();
            //
            sPopup.ShowIcon = true;
            sPopup.ShowInTaskbar = true;
            sPopup.HelpButton = false;

            sPopup.MinimizeBox = false;
            sPopup.MaximizeBox = false;
            sPopup.MaximumSize = sPopup.MinimumSize = sPopup.Size;
            sPopup.StartPosition = FormStartPosition.CenterScreen;

            //
            DialogResult dl = sPopup.ShowDialog(host);
            //

            //
            sPopup.Dispose();
            //
            return dl;
        }