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); }
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; }
private void picLogo_Click(object sender, EventArgs e) { btnReadCSV.Visible = TypesConstants.FLIP(btnReadCSV.Visible); btnWriteCSV.Visible = TypesConstants.FLIP(btnWriteCSV.Visible); }