Ejemplo n.º 1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            input = textBox1.Text;

            using (WaitForm frm = new WaitForm(StartFibonnaci))
            {
                frm.ShowDialog();
            }

            MessageBox.Show(res.ToString(), "Fibonnaci");
        }
Ejemplo n.º 2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            input = textBox6.Text;

            using (WaitForm frm = new WaitForm(StartConvertXml))
            {
                frm.ShowDialog();
            }

            try
            {
                JToken parsedJson = JToken.Parse(res);
                var    beautified = parsedJson.ToString(Formatting.Indented);
                textBox7.Text = beautified;
            }
            catch (Exception ex)
            {
                textBox7.Text = ex.Message;
            }
        }