Пример #1
0
        public FormProjectKiezen()
        {
            InitializeComponent();
            lblMelding.Text = "";
            VulComboBoxMetOpties();
            LocatieString standaard = (LocatieString)cbLocaties.Items[0];

            VulLijstMetFoldersVanPad(standaard, null);
            try
            {
                cbLocaties.SelectedIndex  = 0;
                lbProjecten.SelectedIndex = 0;
            }
            catch (ArgumentOutOfRangeException)
            {
            }

            //Zet de laatste gekozen project folder alvast geselecteerd mits mogelijk
            ZetLaatstGekozenProjectFolderGeselecteerd();
            //lbProjecten.Focus();
            //cbLocaties.Focus();

            tbZoekbalk.GotFocus  += RemoveTempText;
            tbZoekbalk.LostFocus += AddTempText;


            this.Size = MailSAVerTwee.Properties.Settings.Default.FormSize;
        }
Пример #2
0
        private void tbZoekbalk_TextChanged(object sender, EventArgs e)
        {
            String        pattern = tbZoekbalk.Text;
            LocatieString item    = (LocatieString)cbLocaties.SelectedItem;

            if (item != null)
            {
                VulLijstMetFoldersVanPad(item, pattern);
            }
        }
Пример #3
0
        public LocatieString GetAndersPad()
        {
            string        anderspad = Properties.Settings.Default.LocatieAnders;
            LocatieString anders    = getObjectVanPad(anderspad);

            if (Directory.Exists(anders.Pad))
            {
                return(anders);
            }
            return(null);
        }
Пример #4
0
        public LocatieString GetDefaultPad()
        {
            string        standaardpad = Properties.Settings.Default.LocatieStandaard;
            LocatieString standaard    = getObjectVanPad(standaardpad);

            if (Directory.Exists(standaard.Pad))
            {
                return(standaard);
            }
            return(null);
        }
Пример #5
0
        private LocatieString getObjectVanPad(string pad)
        {
            string        orderremoved = pad.Substring(1);
            string        orderchar    = pad.Substring(0, 1);
            LocatieString locatie      = new LocatieString(orderremoved);

            if (orderchar == "+")
            {
                locatie.Sortering = SORTERING.OPLOPEND;
            }
            else if (orderchar == "-")
            {
                locatie.Sortering = SORTERING.AFLOPEND;
            }
            return(locatie);
        }