Exemplo n.º 1
0
        /// <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
            {
            }
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private TableInfo pAddElipseTable()
        {
            TableInfo result = FPlanRunner.AddElipseTable();

            pSetEditorSaved(false);

            return(result);
        }
Exemplo n.º 3
0
        /// <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);
        }
Exemplo n.º 4
0
        /// <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);
            }
        }
Exemplo n.º 5
0
        /// <summary>
        ///
        /// </summary>
        private void pSaveLocationInfo()
        {
            FPlanRunner.SaveFP();

            pSetEditorSaved(true);
        }