Exemple #1
0
        }//chiusura form

        private void RTBText_TextChanged(object sender, EventArgs e)
        {
            RefreshControl.SuspendDrawing(MainSplit);
            ColorConfig.ColoraTesto(RTBText, color);


            if (RTBText.TextLength == 0)
            {
                RTBText.ForeColor = Color.White;
            }
            else
            if (RTBText.Text[RTBText.TextLength - 1] == ' ')
            {
                undoList.Push(RTBText.Text.Trim());
            }

            if (undoList.Count > 0)
            {
                annullaToolStripButton1.Enabled  = true;
                annullaToolStripMenuItem.Enabled = true;
            }

            if (!flag_modified)
            {
                flag_modified    = true;
                StatusLabel.Text = "Non Salvato";
            }
            RefreshControl.ResumeDrawing(MainSplit);
        }//Modifica Testo
Exemple #2
0
 private void ripristinaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (redoList.Count > 0)
     {
         RTBText.Text      = redoList.Pop();
         RTBText.ForeColor = Color.White;
         ColorConfig.ColoraTesto(RTBText, color);
     }
     else
     {
         ripristinaToolStripMenuItem.Enabled = false;
         ripristinaToolStripButton.Enabled   = false;
     }
 }