示例#1
0
        void wf_WordFieldChanged(object sender, WordEditorFieldEventArgs e)
        {
            // Изменения в редакторе
            currentRound.SetAt(e.Text, e.State, e.Index);
            if (autosaveChangesToolStripMenuItem.Checked)
            {
                int sel = listBox1.SelectedIndex;

                if (sel >= 0)
                {
                    (listBox1.Items[sel] as REWRound).SetAt(e.Text, e.State, e.Index);
                }
            }

            RefreshWordForm();

            if (toolStripMenuItem4.Checked)
            {
                sp.Play();
            }

            Saved = false;
        }
示例#2
0
        public static REWRound LoadRound(ProjFileStream pfs, int fileCount, int maxCount)
        {
            string   name = pfs.ReadString();
            REWRound rr   = new REWRound(name, maxCount);

            for (int i = 0; i < fileCount; i++)
            {
                string wrd = pfs.ReadString();
                bool   stt = pfs.ReadBool();
                if (i < maxCount)
                {
                    rr.SetAt(wrd, stt, i);
                }
            }

            return(rr);
        }