/// <summary> /// Recreates the interface, usually called when something like Caption is changed. Use UpdateLocation for position only changes /// /// DO NOT CALL THIS FROM EDITING PROPERTIES! /// </summary> /// <param name='Layout'> /// Layout. /// </param> public virtual void Update(LayoutPanelBase Layout) { Save(); ParentNotePanel.Dispose(); //Parent = null; CreateParent(Layout); }
public void ForceTableUpdate(DataTable newDataSource) { dataSource = newDataSource; Table = new TablePanel(dataSource, HandleCellBeginEdit, Columns, GoToNote, this.Caption, GetRandomTableResults); // ColumnDetails[] updatedColumns = Table.GetColumns(true); // if (null != updatedColumns) // { // // // we don't save if columns have been blanked // lg.Instance.Line("NoteDataXML_Table->Save", ProblemType.MESSAGE, "Do not save empty columns, which may have happened simply because the control was not visible"); // Columns=updatedColumns; // } // Save (); //Update(Layout); ParentNotePanel.Dispose(); //Parent = null; CreateParent(Layout); }
/// <summary> /// Destroy this instance. /// /// Called during a move (and probably a delete when they get there /// </summary> public void Destroy() { //NewMessage.Show ("DO NOT CALL THIS JAN 20 2013"); ParentNotePanel.Dispose(); }