示例#1
0
 public QueueManager(CommunicationClass c)
 {
     InitializeComponent();
     commObj = c;
     initLists();
     this.Show();
 }
示例#2
0
 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);
         }
     }
 }
示例#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();
        }