Exemple #1
0
        public bool DeleteText(ssText dtxt, bool formsToo)
        {
            if (!dtxt.DoubleCheck())
            {
                Err("changed file \"" + dtxt.FileName() + "\"");
                return(false);
            }

            /*/win remove for non-Windowed version
             * if (formsToo) dtxt.DeleteAllForms();
             * // remove for non-Windowed version */
            ssText p = null, t = txts;

            while (t != null && t != dtxt)
            {
                p = t; t = t.Nxt;
            }
            if (t == null)
            {
                return(true);
            }
            if (p == null)
            {
                txts = t.Nxt;
            }
            else
            {
                p.Nxt = t.Nxt;
            }
            //ssTrans.VoidTrans(tlog.Ts, dtxt);
            //ssTrans.VoidTrans(seqRoot.nxt, dtxt);
            prvtxt = txt;
            txt    = null;
            return(true);
        }
Exemple #2
0
        public bool DeleteAllTexts()
        {
            bool all = true;

            for (ssText t = Txts; t != null; t = t.Nxt)
            {
                /*/win remove for non-windowed version
                 * if (t != Log)
                 * // remove for non-windowed version */
                all &= t.DoubleCheck();
            }
            if (!all)
            {
                Err("changed file(s)");
            }
            return(all);
        }