EVEMon / EVEMon / IndustryJobsWindow.cs

using System;
using System.Data;
using System.Text;
using System.Linq;
using System.Drawing;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections.Generic;

using EVEMon.Common;
using EVEMon.Common.Controls;
using EVEMon.Common.SettingsObjects;

namespace EVEMon
{
    public partial class IndustryJobsWindow : EVEMonForm
    {
        private bool m_init;

        public IndustryJobsWindow()
        {
            InitializeComponent();
            this.RememberPositionKey = "IndustryJobsWindow";
            m_init = true;
        }

        /// <summary>
        /// Gets or sets the grouping mode.
        /// </summary>
        public IndustryJobGrouping Grouping
        {
            get { return jobsList.Grouping; }
            set 
            {
                jobsList.Grouping = value;

                if (m_init)
                {
                    jobsList.UpdateColumns();
                    jobsList.lvJobs.Visible = !jobsList.Jobs.IsEmpty();
                }
            }
        }

        /// <summary>
        /// Gets or sets the showIssuedFor mode.
        /// </summary>
        public IssuedFor ShowIssuedFor
        {
            get { return jobsList.ShowIssuedFor; }
            set 
            {
                jobsList.ShowIssuedFor = value;

                if (m_init)
                {
                    jobsList.UpdateColumns();
                    jobsList.lvJobs.Visible = !jobsList.Jobs.IsEmpty();
                }
            }
        }

        /// <summary>
        /// Gets or sets the enumeration of jobs to display.
        /// </summary>
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IEnumerable<IndustryJob> Jobs
        {
            get { return jobsList.Jobs; }
            set { jobsList.Jobs = value; }
        }

        /// <summary>
        /// Gets or sets the enumeration of displayed columns.
        /// </summary>
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public IEnumerable<IndustryJobColumnSettings> Columns
        {
            get { return jobsList.Columns; }
            set
            {
                jobsList.Columns = value;

                if (m_init)
                {
                    jobsList.UpdateColumns();
                    jobsList.lvJobs.Visible = !jobsList.Jobs.IsEmpty();
                }
            }
        }
    }
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.