public void NoStatusBtn() { AlertBox.SetActive(false); AlertTxt.SetActive(false); YesBtn.SetActive(false); NoBtn.SetActive(false); }
void AfterDismissed() { YesSinceBtn.Dispose(); YesButBtn.Dispose(); NoBtn.Dispose(); SkipBtn.Dispose(); }
void Start() { AlertBox.SetActive(false); AlertTxt.SetActive(false); YesBtn.SetActive(false); NoBtn.SetActive(false); }
void Start() { content.text = LocalizationManager.instance.GetLocalUIString(UI_STRING.QUIT); YesBtn.GetComponentInChildren <Text>().text = LocalizationManager.instance.GetLocalUIString(UI_STRING.YES_BTN); NoBtn.GetComponentInChildren <Text>().text = LocalizationManager.instance.GetLocalUIString(UI_STRING.NO_BTN); YesBtn.onClick.AddListener(GameManager.instance.QuitGame); NoBtn.onClick.AddListener(close); }
// void Update(){ // //Invoke("YesDelBtn", 2); // AlertBox.SetActive(false); // YesBtn.SetActive(false); // NoBtn.SetActive(false); // } public void UpdateSchoolBtn() { if (SchoolID.text == "") { msgTxt.text = "<color=red>Please input a School ID</color>"; Debug.Log("<color=red>" + msgTxt.text + "</color>"); } else { AlertBox.SetActive(true); AlertTxt.SetActive(true); YesBtn.SetActive(true); NoBtn.SetActive(true); } }
public void YesStatusBtn() { if (schoolStatus.options[schoolStatus.value].text == "Deactivate") { StartCoroutine(DeactivateSchool()); } else { StartCoroutine(ActivateSchool()); } AlertBox.SetActive(false); AlertTxt.SetActive(false); YesBtn.SetActive(false); NoBtn.SetActive(false); }
public ShellConfirmationDialog(Task task) { Task = task; InitializeComponent(); Theming.ApplyTheme(this); //Set the icon of the dialog Bitmap bitmap = new Bitmap(Image.Width, Image.Height); using (Graphics g = Graphics.FromImage(bitmap)) { g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; g.DrawIcon(SystemIcons.Exclamation, new Rectangle(Point.Empty, Image.Size)); } Image.Image = bitmap; //Focus on the No button NoBtn.Focus(); }
void ReleaseDesignerOutlets() { if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (DateContainer != null) { DateContainer.Dispose(); DateContainer = null; } if (DateLbl != null) { DateLbl.Dispose(); DateLbl = null; } if (DatePicker != null) { DatePicker.Dispose(); DatePicker = null; } if (DatepickerStackView != null) { DatepickerStackView.Dispose(); DatepickerStackView = null; } if (InfoButton != null) { InfoButton.Dispose(); InfoButton = null; } if (NextBtn != null) { NextBtn.Dispose(); NextBtn = null; } if (NoBtn != null) { NoBtn.Dispose(); NoBtn = null; } if (NoLargeBtn != null) { NoLargeBtn.Dispose(); NoLargeBtn = null; } if (NoLbl != null) { NoLbl.Dispose(); NoLbl = null; } if (SkipBtn != null) { SkipBtn.Dispose(); SkipBtn = null; } if (SkipLargeBtn != null) { SkipLargeBtn.Dispose(); SkipLargeBtn = null; } if (SkipLbl != null) { SkipLbl.Dispose(); SkipLbl = null; } if (SubtitleLbl != null) { SubtitleLbl.Dispose(); SubtitleLbl = null; } if (TitleLbl != null) { TitleLbl.Dispose(); TitleLbl = null; } if (YesButBtn != null) { YesButBtn.Dispose(); YesButBtn = null; } if (YesButLargeBtn != null) { YesButLargeBtn.Dispose(); YesButLargeBtn = null; } if (YesButLbl != null) { YesButLbl.Dispose(); YesButLbl = null; } if (YesLbl != null) { YesLbl.Dispose(); YesLbl = null; } if (YesSinceBtn != null) { YesSinceBtn.Dispose(); YesSinceBtn = null; } if (YesSinceLargeBtn != null) { YesSinceLargeBtn.Dispose(); YesSinceLargeBtn = null; } }
private void SSLCertificateErrorDlg_Load(object sender, EventArgs e) { CertificateTextTB.Select(0, 0); NoBtn.Focus(); }