private void ButtonStart_Click(object sender, RoutedEventArgs e) { //先保存当前正在编辑的文档 LPTED.SavePage(NowPage); //将page内容储存到lpt LPTED.Save(); Lineputxaml lineputxaml = new Lineputxaml(LPTED.ToString()); this.Hide(); lineputxaml.ShowDialog(); this.Show(); }