コード例 #1
0
        public bool ShowDesign(ImageModuleDesign imgModuleDesign, IWin32Window owner)
        {
            _imgModuleDesign = imgModuleDesign;

            toolsConfig1.InitToolDesign(_imgModuleDesign.ToolsDesign);

            this.ShowDialog(owner);

            return(_isOk);
        }
コード例 #2
0
        protected override void ReloadCustomDesign(string customContext)
        {
            if (string.IsNullOrEmpty(customContext))
            {
                return;
            }

            _imgModuleDesign = JsonHelper.DeserializeObject <ImageModuleDesign>(customContext);

            LoadDesign();
        }
コード例 #3
0
        public ImageControl()
        {
            InitializeComponent();

            _imgModuleDesign = new ImageModuleDesign();

            _imgModuleDesign.ToolsDesign.Visible  = true;
            _imgModuleDesign.ButImgRefreshVisible = true;
            _imgModuleDesign.ButImgSettingVisible = true;

            _imgModuleDesign.ToolsDesign.BackColor  = toolStrip2.BackColor;
            _imgModuleDesign.ToolsDesign.ForceColor = toolStrip2.ForeColor;
        }