private void Session_EditMenu_Click(object sender, RoutedEventArgs e)
 {
     SessionProperty dlg = new SessionProperty(SelectedSession);
     dlg.ShowDialog();
 }
        protected override void Toolbar_Add_Button_Click(object sender, RoutedEventArgs e)
        {
            base.Toolbar_Add_Button_Click(sender, e);
            SessionProperty dlg = new SessionProperty();
            dlg.ShowDialog();
            if (dlg.telnetsession != null)
            {
                AddSession(dlg.telnetsession,true);

                template.ServerSessions.Add(new ServerSession() {Name=dlg.telnetsession.SessionName, ServerIP = dlg.telnetsession.ServerIP,  Port = dlg.telnetsession.ServerPort  });
            }
        }