Esempio n. 1
0
        public void init(TextBox _textbox,
                         ComboBox comboBox,
                         Button delButton,
                         CheckBox ignoreSB
                         )
        {
            textBox              = _textbox;
            imageComboBox        = comboBox;
            deleteButton         = delButton;
            deleteButton.Enabled = false;
            ignoreSBcheckbox     = ignoreSB;

            int qInd = 0;

            switch (settings.Default.imgtype)
            {
            case 0:
                currentImgType = imgtype.both;
                qInd           = 0;
                break;

            case 1:
                currentImgType = imgtype.png;
                qInd           = 1;
                break;

            case 2:
                currentImgType = imgtype.jpg;
                qInd           = 2;
                break;
            }
            imageComboBox.SelectedIndex = qInd;
        }
Esempio n. 2
0
        public void ImageTypeOnChange()
        {
            int qInd = 0;

            switch (imageComboBox.SelectedIndex)
            {
            case 0:
                currentImgType = imgtype.both;
                qInd           = 0;
                break;

            case 1:
                currentImgType = imgtype.png;
                qInd           = 1;
                break;

            case 2:
                currentImgType = imgtype.jpg;
                qInd           = 2;
                break;
            }
            settings.Default.imgtype = qInd;
        }