public bool ShowDesign(ImageModuleDesign imgModuleDesign, IWin32Window owner) { _imgModuleDesign = imgModuleDesign; toolsConfig1.InitToolDesign(_imgModuleDesign.ToolsDesign); this.ShowDialog(owner); return(_isOk); }
protected override void ReloadCustomDesign(string customContext) { if (string.IsNullOrEmpty(customContext)) { return; } _imgModuleDesign = JsonHelper.DeserializeObject <ImageModuleDesign>(customContext); LoadDesign(); }
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; }