/// <summary> /// Constructor /// </summary> public ChangePinStatusDialogWidget() { cpsDialog_Ui = new Ui.ChangePinStatusDialog(); cpsDialog_Ui.SetupUi(this); cpsDialog_Ui.LblPin1.Text = GlobalObjUI.LMan.GetString("pinsimlbl"); cpsDialog_Ui.LblPin1check.Text = GlobalObjUI.LMan.GetString("pinsimchklbl"); this.WindowTitle = MainClass.AppNameVer + " - " + GlobalObjUI.LMan.GetString("pinsimact"); string title = GlobalObjUI.LMan.GetString("pinsimsetlbl"); // check for actual Pin1 status if (GlobalObjUI.SimPin1Status) { // set disables title += "<b>" + GlobalObjUI.LMan.GetString("pin1off") + "</b>"; } else { // set enabled title += "<b>" + GlobalObjUI.LMan.GetString("pin1on") + "</b>"; } cpsDialog_Ui.LblTitle.Text = title; Connect(cpsDialog_Ui.Buttons, SIGNAL("clicked(QAbstractButton*)"), this, SLOT("ActionExit(QAbstractButton*)")); }
/// <summary> /// Constructor /// </summary> public ChangePinStatusDialogWidget() { cpsDialog_Ui = new Ui.ChangePinStatusDialog(); cpsDialog_Ui.SetupUi(this); cpsDialog_Ui.LblPin1.Text = GlobalObjUI.LMan.GetString("pinsimlbl"); cpsDialog_Ui.LblPin1check.Text = GlobalObjUI.LMan.GetString("pinsimchklbl"); this.WindowTitle = MainClass.AppNameVer + " - " + GlobalObjUI.LMan.GetString("pinsimact"); string title = GlobalObjUI.LMan.GetString("pinsimsetlbl"); // check for actual Pin1 status if (GlobalObjUI.SimPin1Status) { // set disables title += "<b>" + GlobalObjUI.LMan.GetString("pin1off") + "</b>"; } else { // set enabled title += "<b>" + GlobalObjUI.LMan.GetString("pin1on") + "</b>"; } cpsDialog_Ui.LblTitle.Text = title; Connect( cpsDialog_Ui.Buttons, SIGNAL("clicked(QAbstractButton*)"), this, SLOT("ActionExit(QAbstractButton*)")); }