private void solutionButton_Click(object sender, EventArgs e) { int[] result = subsequence.FindSubsequence( MasStringsUtilits.StrToArray <int>(arrayInputTB.Text)); outputTB.Text = MasStringsUtilits.ArrayToStr <int>(result, "\t"); firstIndexTB.Text = subsequence.firstIndex.ToString(); legtnTB.Text = result.Length.ToString(); }
private void Changebutton_Click(object sender, EventArgs e) { List <int> list1 = MasStringsUtilits.StrToList(ListOneTextBox.Text); List <int> list2 = MasStringsUtilits.StrToList(ListTwoTextBox.Text); ClassArrList obj = new ClassArrList(list1); List <int> newlist = obj.Create(list2); ResultTextBox.Text = MasStringsUtilits.ListToStr(newlist); }
private void CreatNewString_Click(object sender, EventArgs e) { int[] arr = MasStringsUtilits.StrToArray <int>(FirstBox.Text); ClassArr obj = new ClassArr(arr); int[] newArr = obj.Put(Convert.ToInt32(Long.Text)); if (newArr != null) { OuttextBox.Text = MasStringsUtilits.ArrayToStr <int>(newArr); } }
private void Changebutton_Click(object sender, EventArgs e) { char[] massiv = MasStringsUtilits.StrToArray1(InputTextBox.Text); ClassArrChar obj = new ClassArrChar(massiv); char[] newMassiv = new Char[massiv.Length]; int n = 0; obj.ChangePlusMinus(out newMassiv, out n); string str = MasStringsUtilits.ArrayToStr <Char>(newMassiv); OutTextBox.Text = str; CountBox.Text = Convert.ToString(n); }