/// <summary> /// ダイアログの二重起動を防ぎます。 /// </summary> /// <param name="dialog">表示させるダイアログのインスタンス。</param> /// <param name="dialogMode">表示させるモード。</param> /// <param name="textBox">対象のTextBox</param> private void SuppresMultiDialogs(findDialog dialog, dialogMode dialogMode, TextBox textBox) { if (dialog == null || dialog.IsDisposed) { dialog = new findDialog(dialogMode, textBox); dialog.Show(this); } }
void showMessage2(string msg, string title, dialogMode mode) { dialog.active = true; dialog_yes.active = true; dialog_no.active = true; dialog_okay.active = false; txt_message.text = msg; _dialogMode = mode; txt_messageTitle.text = title; }
void showMessage2(string msg, string title, dialogMode mode) { dialog.SetActive(true); dialog_yes.SetActive(true); dialog_no.SetActive(true); dialog_okay.SetActive(false); txt_message.text = msg; _dialogMode = mode; txt_messageTitle.text = title; }
public findDialog(dialogMode mode, TextBox txtBox) { InitializeComponent(); _textBox = txtBox; Mode = mode; }
public findDialog(dialogMode mode) { InitializeComponent(); Mode = mode; }