예제 #1
0
 public Create_Group_Page()
 {
     GlobalVariables.connectToDatabase();
     InitializeComponent();
     resetData();
     addSelfUser();
 }
예제 #2
0
        public Group_Members()
        {
            GlobalVariables.connectToDatabase();
            InitializeComponent();
            List <string> memberNames = GlobalVariables.returnNamesGroup(GlobalVariables.selectedGroup);

            if (memberNames.Count > 6)
            {
                Members_Backbar.SetValue(Grid.RowSpanProperty, 6);
                Rectangle secondLayer = new Rectangle();
                secondLayer.SetValue(Grid.RowProperty, 1);
                secondLayer.SetValue(Grid.ColumnProperty, 3);
                secondLayer.SetValue(Grid.RowSpanProperty, memberNames.Count - 6);
                secondLayer.Fill = new SolidColorBrush(Colors.White);

                MainGrid.Children.Add(secondLayer);
                setNames(memberNames, 2, 6);
                setNames(memberNames, 3, memberNames.Count - 6);
            }
            else
            {
                Members_Backbar.SetValue(Grid.RowSpanProperty, memberNames.Count);
                setNames(memberNames, 2, memberNames.Count);
            }
        }
예제 #3
0
        public Groups_Page()
        {
            GlobalVariables.connectToDatabase();
            InitializeComponent();
            List <string> groups        = GlobalVariables.returnListGroups();
            int           totalGroups   = groups.Count;
            int           currentRow    = 1;
            int           currentColumn = 1;

            for (var i = 0; i < totalGroups; i++)
            {
                Button newGroup = new Button();
                newGroup.Content = groups[i];
                newGroup.SetValue(Grid.ColumnProperty, currentColumn);
                newGroup.SetValue(Grid.RowProperty, currentRow);
                newGroup.Click += new RoutedEventHandler(newGroup_ButtonClick);

                MainGrid.Children.Add(newGroup);
                if (i % 3 == 0 && i != 0)
                {
                    currentRow++;
                    currentColumn = 1;
                }
                else
                {
                    currentColumn++;
                }
            }
        }
예제 #4
0
        public Group_Members()
        {
            GlobalVariables.connectToDatabase();
            InitializeComponent();
            List <string> memberNames = GlobalVariables.returnNamesGroupForMembers(GlobalVariables.selectedGroup);

            DisplayTasks.Text = "USER IDs IN THIS GROUP                                                     " + Environment.NewLine + Environment.NewLine;
            for (var i = 0; i < memberNames.Count; i++)
            {
                DisplayTasks.Text = DisplayTasks.Text + Environment.NewLine + memberNames[i] + Environment.NewLine + Environment.NewLine;
            }
        }
 public MainScreenFoundation()
 {
     InitializeComponent();
     GlobalVariables.connectToDatabase();
 }
예제 #6
0
 public Group_Details()
 {
     GlobalVariables.connectToDatabase();
     InitializeComponent();
     load_Page();
 }
예제 #7
0
 public Group_Tasks()
 {
     GlobalVariables.connectToDatabase();
     InitializeComponent();
     load_tasks();
 }
예제 #8
0
 public Account_Details()
 {
     InitializeComponent();
     GlobalVariables.connectToDatabase();
 }
예제 #9
0
 public Login()
 {
     InitializeComponent();
     GlobalVariables.connectToDatabase();
     //GlobalVariables.insertIntoPeople("Z", "C", "123", 9, "B");
 }
예제 #10
0
 public Make_User()
 {
     InitializeComponent();
     GlobalVariables.connectToDatabase();
 }