Exemple #1
0
 public Create_Group_Page()
 {
     GlobalVariables.connectToDatabase();
     InitializeComponent();
     resetData();
     addSelfUser();
 }
Exemple #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);
            }
        }
        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++;
                }
            }
        }
        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();
 }
 public Group_Details()
 {
     GlobalVariables.connectToDatabase();
     InitializeComponent();
     load_Page();
 }
 public Group_Tasks()
 {
     GlobalVariables.connectToDatabase();
     InitializeComponent();
     load_tasks();
 }
Exemple #8
0
 public Account_Details()
 {
     InitializeComponent();
     GlobalVariables.connectToDatabase();
 }
Exemple #9
0
 public Login()
 {
     InitializeComponent();
     GlobalVariables.connectToDatabase();
     //GlobalVariables.insertIntoPeople("Z", "C", "123", 9, "B");
 }
Exemple #10
0
 public Make_User()
 {
     InitializeComponent();
     GlobalVariables.connectToDatabase();
 }