Example #1
0
        public bool Contains(object de)
        {
            ProjectClass order = de as ProjectClass;

            //Return members whose Orders have not been filled
            return(order.STATUS == "ACTIVE");
        }
Example #2
0
 private void ProjectList_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         ProjectClass s = (ProjectClass)ProjectList.SelectedItems[0];
         Projects.ProjectPages.ProjectView ProjectSite = new Projects.ProjectPages.ProjectView(_identity, s, ProjectList, _IPHelper);
         NavigationService.Navigate(ProjectSite);
     }
     catch { }
     ProjectList.SelectedItem = false;
 }
Example #3
0
        public Project_page(string ID, EventClass IPHelper)

        {
            _IPHelper = IPHelper;

            InitializeComponent();

            _identity = ID;
            comboBox.SelectedIndex = 1;

            ProjectHelper = new ProjectClass();
            ProjectHelper.GetProjectList(_identity, ProjectList, filtr = $"WHERE STATUS = 'ACTIVE'");

            comboBox.SelectionChanged += (o, e) => RefreshList();
        }
Example #4
0
        public Dashboard_page(string ID, EventClass IPHelper, string JsonPath)
        {
            _IPHelper = IPHelper;
            _identity = ID;
            InitializeComponent();
            TimeLbl.Content = DateTime.Now.Hour + ":" + DateTime.Now.Minute;

            DispatcherTimer timer = new DispatcherTimer(new TimeSpan(0, 0, 1), DispatcherPriority.Normal, delegate
            {
                this.TimeLbl.Content = DateTime.Now.ToString("HH:mm");
            }, this.Dispatcher);

            FullDate.Content = DateTime.Now.ToLongDateString();

            DashContent = new ProjectClass();

            DashContent.GetDashboardList(ID, ProjectDashList);

            ChartHelper Chart = new ChartHelper(JsonPath, WeekChart);

            Chart.SetTasksValues();
        }