public Create_Group_Page() { GlobalVariables.connectToDatabase(); InitializeComponent(); resetData(); addSelfUser(); }
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(); }
public Account_Details() { InitializeComponent(); GlobalVariables.connectToDatabase(); }
public Login() { InitializeComponent(); GlobalVariables.connectToDatabase(); //GlobalVariables.insertIntoPeople("Z", "C", "123", 9, "B"); }
public Make_User() { InitializeComponent(); GlobalVariables.connectToDatabase(); }