// 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); }
// 原始版本 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); }
// 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; }
// 原始版本 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; }