private void ShowContent(string name) { this.stackpanel.Children.Clear(); if (mPipeInfo == null) { mPipeInfo = new PipeInfo(name); } this.stackpanel.Children.Add(mPipeInfo); }
private void ShowContent(int id) { this.stackpanel.Children.Clear(); if (mPipeInfo == null) { mPipeInfo = new PipeInfo(id); } this.stackpanel.Children.Add(mPipeInfo); }
private void BaseInfo(object sender, RoutedEventArgs e) //管道基本数据 { this.stackpanel.Children.Clear(); if (mPipeInfo == null) { if (mPipeName != null) mPipeInfo = new PipeInfo(mPipeName); else mPipeInfo = new PipeInfo(mId); } this.stackpanel.Children.Add(mPipeInfo); }