Ejemplo n.º 1
0
        public void Attach(UserPreferencesDialog userPreferencesDialog)
        {
            this.dlg = userPreferencesDialog;

            dlg.Load += dlg_Load;

            dlg.WindowTree.AfterSelect += WindowTree_AfterSelect;
            dlg.WindowFontButton.Click += WindowFontButton_Click;
            dlg.WindowFgButton.Click += WindowFgButton_Click;
            dlg.WindowBgButton.Click += WindowBgButton_Click;

            dlg.ImagebarList.SelectedIndexChanged += ImagebarList_SelectedIndexChanged;
            dlg.ImagebarFgButton.Click += ImagebarFgButton_Click;
            dlg.ImagebarBgButton.Click += ImagebarBgButton_Click;

            dlg.WindowTree.SelectedNode = dlg.WindowTree.Nodes[0];
        }
Ejemplo n.º 2
0
        public void Attach(UserPreferencesDialog userPreferencesDialog)
        {
            this.dlg = userPreferencesDialog;

            dlg.Load += dlg_Load;

            dlg.WindowTree.AfterSelect += WindowTree_AfterSelect;
            dlg.WindowFontButton.Click += WindowFontButton_Click;
            dlg.WindowFgButton.Click   += WindowFgButton_Click;
            dlg.WindowBgButton.Click   += WindowBgButton_Click;

            dlg.ImagebarList.SelectedIndexChanged += ImagebarList_SelectedIndexChanged;
            dlg.ImagebarFgButton.Click            += ImagebarFgButton_Click;
            dlg.ImagebarBgButton.Click            += ImagebarBgButton_Click;

            dlg.WindowTree.SelectedNode = dlg.WindowTree.Nodes[0];
        }
Ejemplo n.º 3
0
        public void Attach(UserPreferencesDialog userPreferencesDialog)
        {
            this.dlg = userPreferencesDialog;
            this.descs = new Dictionary<string, string> {
                { "Code", "Bytes that are known to be executable code." },
                { "Heuristic code", "Bytes that have been determined to be executable code using heuristics." },
                { "Data", "Bytes that are known to be used as data." },
                { "Address", "Bytes that are known to be an address." },
                { "Unknown", "Bytes whose function is unknown. " }
            };

            dlg.Load += dlg_Load;
            dlg.WindowTree.AfterSelect += WindowTree_AfterSelect;
            dlg.WindowFontButton.Click += WindowFontButton_Click;
            dlg.WindowFgButton.Click += WindowFgButton_Click;
            dlg.WindowBgButton.Click += WindowBgButton_Click;

            dlg.ImagebarList.SelectedIndexChanged += ImagebarList_SelectedIndexChanged;
            dlg.ImagebarFgButton.Click += ImagebarFgButton_Click;
            dlg.ImagebarBgButton.Click += ImagebarBgButton_Click;
        }
Ejemplo n.º 4
0
        public void Attach(UserPreferencesDialog userPreferencesDialog)
        {
            this.dlg   = userPreferencesDialog;
            this.descs = new Dictionary <string, string> {
                { "Code", "Bytes that are known to be executable code." },
                { "Heuristic code", "Bytes that have been determined to be executable code using heuristics." },
                { "Data", "Bytes that are known to be used as data." },
                { "Address", "Bytes that are known to be an address." },
                { "Unknown", "Bytes whose function is unknown. " }
            };

            dlg.Load += dlg_Load;
            dlg.WindowTree.AfterSelect += WindowTree_AfterSelect;
            dlg.WindowFontButton.Click += WindowFontButton_Click;
            dlg.WindowFgButton.Click   += WindowFgButton_Click;
            dlg.WindowBgButton.Click   += WindowBgButton_Click;

            dlg.ImagebarList.SelectedIndexChanged += ImagebarList_SelectedIndexChanged;
            dlg.ImagebarFgButton.Click            += ImagebarFgButton_Click;
            dlg.ImagebarBgButton.Click            += ImagebarBgButton_Click;
        }
Ejemplo n.º 5
0
 private void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var dlg = new UserPreferencesDialog())
     {
         var sc = new ServiceContainer();
         var cfgSvc = new FakeConfigurationService();
         sc.AddService(typeof(IConfigurationService), cfgSvc);
         var uipSvc = new UiPreferencesService(cfgSvc, new FakeSettingsService());
         uipSvc.Load();
         sc.AddService(typeof(IUiPreferencesService), uipSvc);
         dlg.Services = sc;
         dlg.ShowDialog(this);
     }
 }