Exemplo n.º 1
0
        public static Icon GetSettingsIcon()
        {
            Icon i = IconExtractor.Extract(GetSourceLocation(IconSource.Shell), 21, true);

            if (i == null)
            {
                return(SystemIcons.Application);
            }

            return(i);
        }
Exemplo n.º 2
0
        //---------------------------------------------------------------------------------------------------
        // Class Constructors
        //---------------------------------------------------------------------------------------------------
        public OptionDlg(MainForm form, SAPLogonOpt config)
        {
            InitializeComponent();

            this.tbDefaultLng.KeyPress += new KeyPressEventHandler(this.tbDefaultLng_KeyPress);

            this.Text = Translatable.TitelOptionDlg;
            this.Icon = IconExtractor.GetSettingsIcon();
            this.btnFolderDlg.Image      = IconExtractor.GetOpenFolderIcon().ToBitmap();
            this.fbDlgGUIPath.RootFolder = Environment.SpecialFolder.ProgramFilesX86;

            LoadOptions(config);

            m_form   = form;
            m_config = config;
        }