Exemplo n.º 1
0
        private ArtPopNumericUpDown MakeNud(int def, Control swap)
        {
            ArtPopNumericUpDown nud = new ArtPopNumericUpDown();

            nud.Min          = 1;
            nud.Max          = 32767;
            nud.Value2       = def;
            nud.DataType     = DataType.Int32;
            nud.ValueChanged = ValidateImageNuds;

            Globals.SwapControl(swap, nud);

            return(nud);
        }
Exemplo n.º 2
0
        }                                                                                          //In 32b RGB

        public SettingsForm()
        {
            InitializeComponent();
            _nudMinWidth  = MakeNud(800, _pnlMinWidth);
            _nudMinHeight = MakeNud(800, _pnlMinHeight);
            _nudMaxWidth  = MakeNud(9999, _pnlMaxWidth);
            _nudMaxHeight = MakeNud(9999, _pnlMaxHeight);
            foreach (ListViewItem lsv in _lsvFileTypes.Items)
            {
                lsv.Checked = false;
            }
            SelectFileType("PNG");
            SelectFileType("JPG");
            _txtSearchPath.Text = System.Environment.CurrentDirectory;
            CreateDefaultSession();
            _sbPieOpacity.Value = 60;

            Globals.SelectCboItem(_cboLanguage, Globals.MainForm.OptionsFile.SelectedLanguage.ToString(), 0);
        }