using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
namespace JurecStrings
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
JIO sa = new JIO();
sa.Inp(textBox1);
sa.Outp(textBox2);
}
}
class Jurius
{
protected string data;
ArrayList num = new ArrayList();
void NumLen()
{
int k = 0;
data += "a";
for (int i = 0; i < data.Length; i++)
{
if (Char.IsNumber(data))
{
k++;
}
else
{
if (k != 0)
{
num.Add(k);
k = 0;
}
}
}
}
protected int Max()
{
NumLen();
int max = 0;
for (int i = 0; i < num.Count; i++)
{
if (Convert.ToInt16(num) > max)
max = Convert.ToInt16(num);
}
return max;
}
}
class JIO : Jurius
{
public void Inp(TextBox g)
{
data = g.Text;
}
public void Outp(TextBox g)
{
g.Text = Max().ToString();
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
namespace JurecStrings
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
JIO sa = new JIO();
sa.Inp(textBox1);
sa.Outp(textBox2);
}
}
class Jurius
{
protected string data;
ArrayList num = new ArrayList();
void NumLen()
{
int k = 0;
data += "a";
for (int i = 0; i < data.Length; i++)
{
if (Char.IsNumber(data))
{
k++;
}
else
{
if (k != 0)
{
num.Add(k);
k = 0;
}
}
}
}
protected int Max()
{
NumLen();
int max = 0;
for (int i = 0; i < num.Count; i++)
{
if (Convert.ToInt16(num) > max)
max = Convert.ToInt16(num);
}
return max;
}
}
class JIO : Jurius
{
public void Inp(TextBox g)
{
data = g.Text;
}
public void Outp(TextBox g)
{
g.Text = Max().ToString();
}
}
}