public SequencePage(Panel tempPanel, String procedureName, PDU pdu, Procedure tempProcedure, StreamSocket tempSocket)
        {
            newSocket = tempSocket;
            localProcedure = tempProcedure;
            procedure = procedureName;
            tempPDU = pdu;
            panel2 = tempPanel;
            this.InitializeComponent();
            procedureTextBlock.Text = procedureName;

            loadSequences();
        }
示例#2
0
        public void ListViewItem_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            var MySP = sender as StackPanel;
            var MyTextBlock = MySP.Children[2] as TextBlock;
            string tempName = MyTextBlock.Text;
            
            foreach (Procedure pro in temp.ProcedureList)
            {
                if (pro.Description == tempName)
                {
                    tempProcedure = pro;
                }
            }

            SequencePage Seq = new SequencePage(gridMainPage, tempName, pdu2, tempProcedure, socket);
            gridMainPage.Children.Add(Seq);
        }