예제 #1
0
 private void btnStrikeout_Click(object sender, EventArgs e)
 {
     System.Drawing.FontStyle fontStyle = FontStyle.Regular;
     if (operation.getCurrentDocument.SelectionFont.Strikeout)
     {
         fontStyle |= FontStyle.Regular;
     }
     else
     {
         fontStyle |= FontStyle.Strikeout;
     }
     if (operation.getCurrentDocument.SelectionFont.Italic)
     {
         fontStyle |= FontStyle.Italic;
     }
     if (operation.getCurrentDocument.SelectionFont.Bold)
     {
         fontStyle |= FontStyle.Bold;
     }
     if (operation.getCurrentDocument.SelectionFont.Underline)
     {
         fontStyle |= FontStyle.Underline;
     }
     btnStrikeout.Checked = TypesConstants.FLIP(btnStrikeout.Checked);
     operation.getCurrentDocument.SelectionFont = new Font(operation.getCurrentDocument.SelectionFont.FontFamily,
                                                           operation.getCurrentDocument.SelectionFont.Size, fontStyle);
 }
예제 #2
0
 private void chkUpdate_CheckedChanged(object sender, EventArgs e)
 {
     foreach (DataGridViewColumn column in taskData.Columns)
     {
         column.ReadOnly = TypesConstants.FLIP(column.ReadOnly);
     }
     txtNote.ReadOnly            = TypesConstants.FLIP(txtNote.ReadOnly);
     idDataColumn.ReadOnly       = true;
     documentDataColumn.ReadOnly = true;
 }
예제 #3
0
 private void picLogo_Click(object sender, EventArgs e)
 {
     btnReadCSV.Visible  = TypesConstants.FLIP(btnReadCSV.Visible);
     btnWriteCSV.Visible = TypesConstants.FLIP(btnWriteCSV.Visible);
 }