Ejemplo n.º 1
0
        public ConfigToolBar(ConfigView configView)
        {
            Verify.Argument.IsNotNull(configView, "configView");

            _configView = configView;
            Items.Add(
                new ToolStripButton(
                    Resources.StrRefresh,
                    CachedResources.Bitmaps["ImgRefresh"],
                    OnRefreshButtonClick)
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image,
            });

            Items.Add(new ToolStripSeparator());

            Items.Add(
                new ToolStripButton(
                    Resources.StrAddParameter,
                    CachedResources.Bitmaps["ImgConfigAdd"],
                    OnAddParameterButtonClick));
        }
Ejemplo n.º 2
0
        public ConfigToolBar(ConfigView configView)
        {
            Verify.Argument.IsNotNull(configView, "configView");

            _configView = configView;
            Items.Add(
                new ToolStripButton(
                    Resources.StrRefresh,
                    CachedResources.Bitmaps["ImgRefresh"],
                    OnRefreshButtonClick)
                    {
                        DisplayStyle = ToolStripItemDisplayStyle.Image,
                    });

            Items.Add(new ToolStripSeparator());

            Items.Add(
                new ToolStripButton(
                    Resources.StrAddParameter,
                    CachedResources.Bitmaps["ImgConfigAdd"],
                    OnAddParameterButtonClick));
        }