Exemplo n.º 1
0
        public void MsgBoxLogin(String login, String psw, View.IOnClickListener btn2lst)
        {
            invisible();
            Dialog.SetTitle("Login/Password");
            Edit1.SetText(login, TextView.BufferType.Normal);
            Edit2.SetText(psw, TextView.BufferType.Normal);
            Button1.SetText("CANCEL", TextView.BufferType.Normal);
            Button2.SetText("OK", TextView.BufferType.Normal);
            Text1.Visibility = ViewStates.Visible;
            Text1.SetText("Login", TextView.BufferType.Normal);
            Text2.Visibility = ViewStates.Visible;
            Text2.SetText("Password", TextView.BufferType.Normal);
            Button1.Visibility = ViewStates.Visible;
            Button2.Visibility = ViewStates.Visible;
            Edit1.Visibility   = ViewStates.Visible;
            Edit2.Visibility   = ViewStates.Visible;
//			btn1.SetOnClickListener (new View.IOnClickListener ());//{public void onClick(View v){dialog.cancel();}});
//			btn2.SetOnClickListener(btn2lst);
            try
            {
                Dialog.Show();
            }
            catch (Exception err)
            {
                Log.Debug("xxx", err.Message);
            }
        }
Exemplo n.º 2
0
 public void MsgBoxButtons(String title, String msg, String button1name, String button2name, String button3name, EventHandler btn1lst, EventHandler btn2lst, EventHandler btn3lst, bool usesave)
 {
     invisible();
     Dialog.SetTitle(title);
     Button1.SetText(button1name, TextView.BufferType.Normal);
     Button2.SetText(button2name, TextView.BufferType.Normal);
     Button3.SetText(button3name, TextView.BufferType.Normal);
     Text1.Visibility   = ViewStates.Visible;
     Button1.Visibility = ViewStates.Visible;
     Button2.Visibility = ViewStates.Visible;
     Button3.Visibility = ViewStates.Visible;
     Button1.Click     += btn1lst;
     Button2.Click     += btn2lst;
     Button3.Click     += btn3lst;
     Text1.SetText(msg, TextView.BufferType.Normal);
     if (usesave)
     {
         CheckBoxSaveText.Visibility = ViewStates.Visible;
         CheckBoxSave.Visibility     = ViewStates.Visible;
     }
     try
     {
         Dialog.Show();
     }
     catch (Exception err)
     {
         Log.Debug("xxx", err.Message);
     }
 }
Exemplo n.º 3
0
        public void MsgBoxButtons(String title, String msg, object btn2lst)
        {
            invisible();
            Dialog.SetTitle(title);
            Button1.SetText("CANCEL", TextView.BufferType.Normal);
            Button2.SetText("OK", TextView.BufferType.Normal);
            Text1.Visibility   = ViewStates.Visible;
            Button1.Visibility = ViewStates.Visible;
            Button2.Visibility = ViewStates.Visible;

            Button1.Click += delegate {  };
            Button2.Click += delegate {  };

//			btn1.SetOnClickListener (View.IOnClickListener );//{ public void onClick(View v){dialog.cancel();}});
//			btn2.SetOnClickListener(btn2lst);
            Text1.SetText(msg, TextView.BufferType.Normal);
            try
            {
                Dialog.Show();
            }
            catch (Exception err)
            {
                Log.Debug("xxx", err.Message);
            }
        }
Exemplo n.º 4
0
 public void MsgBoxButtons(String title, String msg, String button1name, String button2name, View.IOnClickListener btn1lst, View.IOnClickListener btn2lst)
 {
     invisible();
     Dialog.SetTitle(title);
     Button1.SetText(button1name, TextView.BufferType.Normal);
     Button2.SetText(button2name, TextView.BufferType.Normal);
     Text1.Visibility   = ViewStates.Visible;
     Button1.Visibility = ViewStates.Visible;
     Button2.Visibility = ViewStates.Visible;
     Button1.SetOnClickListener(btn1lst);
     Button2.SetOnClickListener(btn2lst);
     Text1.SetText(msg, TextView.BufferType.Normal);
     try
     {
         Dialog.Show();
     }
     catch (Exception err)
     {
         Log.Debug("xxx", err.Message);
     }
 }