private void EnterPress(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { compView.Add_Channel("/" + this.TextBox.Text); this.Hide(); OnChannelCreated(this, new EventArgs()); } }
static void Add_Channel() { Console.WriteLine("Enter channel path as: parentpath/channelname"); Console.Write(" > "); string pathname = Console.ReadLine(); cv.Add_Channel(pathname); }