/// <summary> /// /// </summary> /// <param name="inIndex"></param> private void pDelTableAtIndex(int inIndex) { try { TableInfo table = pTableAtIndex(inIndex); _canvasManager.RemoveTableFromCanvas(table); FPlanRunner.DelTable(table); pDelTreeNodeAtIndex(inIndex, tvTables); if (TableList.Length > 0) { if (inIndex >= TableList.Length) { inIndex = TableList.Length - 1; } pSelectNodeInTreeView(tvTables, inIndex); pSelectTable(pTableAtIndex(inIndex)); } } catch { } }
/// <summary> /// /// </summary> /// <returns></returns> private TableInfo pAddElipseTable() { TableInfo result = FPlanRunner.AddElipseTable(); pSetEditorSaved(false); return(result); }
/// <summary> /// /// </summary> private LocationInfo pAddNewLocation() { LocationInfo result = rbPortrait.Checked ? FPlanRunner.AddLocation(ImageOrientation.Portrait) : FPlanRunner.AddLocation(ImageOrientation.Lanscape); result.Location = @"My Location"; pSetEditorSaved(false); return(result); }
/// <summary> /// /// </summary> /// <param name="inLocation"></param> /// <param name="inIndex"></param> private void pDelLocationAtIndex(int inIndex) { FPlanRunner.DelLocation(pLocationAtIndex(inIndex)); pDelTreeNodeAtIndex(inIndex, tvLocations); if (LocationCount == 0) { pAddLocationAndShow(); } else { if (inIndex >= LocationCount) { inIndex = LocationCount - 1; } pSelectNodeInTreeView(tvLocations, inIndex); LocationInUse = pLocationAtIndex(inIndex); pShowLocationInfo(LocationInUse); } }
/// <summary> /// /// </summary> private void pSaveLocationInfo() { FPlanRunner.SaveFP(); pSetEditorSaved(true); }