Beispiel #1
0
 public QueueManager(CommunicationClass c)
 {
     InitializeComponent();
     commObj = c;
     initLists();
     this.Show();
 }
 private void ScheduleRequest_Click(object sender, RoutedEventArgs e)
 {
     {
         try
         {
             commObj = new CommunicationClass(this);
             Page1 page = new Page1(commObj);
             mainFrame.NavigationService.Navigate(page);
         }
         catch
         {
             Console.WriteLine("ByeBye");
             Environment.Exit(0);
         }
     }
 }
Beispiel #3
0
        //this need to be much more clever in the setup -- can we be dynamic?
        public Page1(CommunicationClass c)
        {
            InitializeComponent();
            slots   = new List <UserControl1>();
            commObj = c;
            int        memberCount = commObj.queueMemberCount();
            StackPanel sp1         = new StackPanel {
                Orientation = Orientation.Vertical
            };

            for (int i = 0; i < memberCount; i++)
            {
                slots.Add(new UserControl1());
                sp1.Children.Add(slots[i]);
            }
            grid1.Children.Add(sp1);
            TASName.Content   = commObj.fetchDisplayName();
            QueueName.Content = commObj.fetchQueueName();
        }