コード例 #1
0
ファイル: ChargingInfoDlg.cs プロジェクト: zszqwe/dp2
        // 2009/6/2
        public static string Show(ChargingInfoHost host,
                                  string strText,
                                  InfoColor infocolor,
                                  string strCaption,
                                  double delayOpacity,
                                  bool bPassword,
                                  Font font = null)
        {
            ChargingInfoDlg dlg = new ChargingInfoDlg();

            if (font != null)
            {
                MainForm.SetControlFont(dlg, font, false);
            }

            dlg.Host         = host;
            dlg.DelayOpacity = delayOpacity;
            dlg.InfoColor    = infocolor;
            dlg.MessageText  = strText;
            if (strCaption != null)
            {
                dlg.Text = strCaption;
            }
            dlg.Password      = bPassword;
            dlg.StartPosition = FormStartPosition.CenterScreen;

            host.ap.LinkFormState(dlg, "ChargingInfoDlg_state");
            dlg.ShowDialog(host.window);
            host.ap.UnlinkFormState(dlg);

            return(dlg.FastInputText);
        }
コード例 #2
0
ファイル: ChargingInfoDlg.cs プロジェクト: zszqwe/dp2
        // 原始版本
        static string Show(IWin32Window owner,
                           string strText,
                           InfoColor infocolor,
                           string strCaption,
                           double delayOpacity,
                           Font font = null)
        {
            ChargingInfoDlg dlg = new ChargingInfoDlg();

            if (font != null)
            {
                MainForm.SetControlFont(dlg, font, false);
            }

            dlg.DelayOpacity = delayOpacity;
            dlg.InfoColor    = infocolor;
            dlg.MessageText  = strText;
            if (strCaption != null)
            {
                dlg.Text = strCaption;
            }
            dlg.StartPosition = FormStartPosition.CenterScreen;
            dlg.ShowDialog(owner);

            return(dlg.FastInputText);
        }
コード例 #3
0
ファイル: ChargingInfoDlg.cs プロジェクト: renyh1013/dp2
        // 2009/6/2 
        public static string Show(ChargingInfoHost host,
            string strText,
            InfoColor infocolor,
            string strCaption,
            double delayOpacity,
            bool bPassword,
            Font font = null)
        {
            ChargingInfoDlg dlg = new ChargingInfoDlg();
            if (font != null)
                MainForm.SetControlFont(dlg, font, false);

            dlg.Host = host;
            dlg.DelayOpacity = delayOpacity;
            dlg.InfoColor = infocolor;
            dlg.MessageText = strText;
            if (strCaption != null)
                dlg.Text = strCaption;
            dlg.Password = bPassword;
            dlg.StartPosition = FormStartPosition.CenterScreen;

            host.ap.LinkFormState(dlg, "ChargingInfoDlg_state");
            dlg.ShowDialog(host.window);
            host.ap.UnlinkFormState(dlg);

            return dlg.FastInputText;
        }
コード例 #4
0
ファイル: ChargingInfoDlg.cs プロジェクト: renyh1013/dp2
        // 原始版本
        static string Show(IWin32Window owner,
            string strText,
            InfoColor infocolor,
            string strCaption,
            double delayOpacity,
            Font font = null)
        {
            ChargingInfoDlg dlg = new ChargingInfoDlg();
            if (font != null)
                MainForm.SetControlFont(dlg, font, false);

            dlg.DelayOpacity = delayOpacity;
            dlg.InfoColor = infocolor;
            dlg.MessageText = strText;
            if (strCaption != null)
                dlg.Text = strCaption;
            dlg.StartPosition = FormStartPosition.CenterScreen;
            dlg.ShowDialog(owner);

            return dlg.FastInputText;
        }