Esempio n. 1
0
        private void Input_msgShow(object sender, EventArgs e)
        {
            WeatherDesktop.Share.InputArgs inputArgs = (WeatherDesktop.Share.InputArgs)e;
            Dialog val = null;

            try
            {
                Entry val2 = new Entry();
                val = new Dialog()
                {
                    Title = inputArgs.Title
                };

                val.AddButton("ok", (ResponseType)(-5));
                val.VBox.Add(new Label(inputArgs.Message));
                val.SetPosition(WindowPosition.CenterAlways);
                val.VBox.Add(val2);
                val.Show();
                val.Run();
                inputArgs.Response = val2.Text;
            }
            finally
            {
                if (val != null)
                {
                    val.Dispose();
                }
            }
        }