Exemple #1
0
        /// <summary>
        /// Deletes the given part order. The part order should not be used in nestings.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <returns>true if deleted</returns>
        public bool DeletePartOrder(string id)
        {
            if (!ResultColumn.SelectItem(id))
            {
                ResultColumn.ClearSearch();
                return(false);
            }

            Toolbar.Delete();
            ResultColumn.ClearSearch();
            return(true);
        }
        /// <summary>
        /// Deletes the given nesting template.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <returns>true if successful</returns>
        public bool DeleteNestingTemplate(string id)
        {
            if (!ResultColumn.SelectItem(id))
            {
                ResultColumn.ClearSearch();
                return(false);
            }

            Toolbar.Delete();
            ResultColumn.ClearSearch();
            return(true);
        }
        /// <summary>
        /// Deletes the given material.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <returns>true if successful</returns>
        public bool DeleteMaterial(string id)
        {
            if (!ResultColumn.SelectItem(id))
            {
                ResultColumn.ClearSearch();
                return(false);
            }

            Toolbar.Delete();
            (( TcMainTabControl )Parent).WaitForTabOverlayDisappear();
            ResultColumn.ClearSearch();
            return(true);
        }