public FormDashboardEditCell(Control dockControl, bool allowSave) { InitializeComponent(); if (dockControl is IODGraphPrinter) { _printer = (IODGraphPrinter)dockControl; } if (dockControl is IDashboardDockContainer) { this.Text = "Edit Cell - " + ((IDashboardDockContainer)dockControl).GetCellType().ToString(); } splitContainer.Panel1.Controls.Add(dockControl); butOk.Enabled = allowSave; if (!allowSave) { labelChanges.Visible = true; } }
public DashboardDockContainer( Control c, IODGraphPrinter printer = null, EventHandler onEditClick = null, EventHandler onEditOk = null, EventHandler onEditCancel = null, EventHandler onDropComplete = null, EventHandler onRefreshCache = null, TableBase dbItem = null) { _contr = c; _printer = printer; _onEditClick = onEditClick; _onEditOk = onEditOk; _onEditCancel = onEditCancel; _onDropComplete = onDropComplete; _onRefreshCache = onRefreshCache; _dbItem = dbItem; }