private void CompositeCreateHandler(object sender, TextChangedEventArgs e) { ClientC client = new ClientC(); TextBox tb = sender as TextBox; client.CreateLeaf(tb.Text); client.CreateChild(Temp, tb.Text); }
private void CreateBrunchHandler(object sender, TextChangedEventArgs e) { ClientC client = new ClientC(); TextBox tb = sender as TextBox; client.CreateBranch(tb.Text); if (Temp == null) { Temp = tb.Text; } else { client.CreateChild(Temp, tb.Text); } }
private void TextChangedHandler(object sender, TextChangedEventArgs e) { ClientC client = new ClientC(); TextBox tb = sender as TextBox; client.CreateBranch("Root " + tb.Text); Temp = tb.Text; }