private void radioButtonTwoEditors_CheckedChanged(object sender, EventArgs e)
 {
     Slyce.Common.Utility.SuspendPainting(this);
     CurrentDisplayStyle = DisplayStyles.TwoEditors;
     Populate();
     Slyce.Common.Utility.ResumePainting(this);
 }
 public DataGridViewTickChartCell(DisplayStyles Style, string Symbol)
 {
     m_Style  = Style;
     m_Symbol = Symbol;
     UpdateStyle();
     Value = m_BackGroundImage;
 }
 private void toolStripButtonDoubleEditor_Click(object sender, EventArgs e)
 {
     Slyce.Common.Utility.SuspendPainting(this);
     CurrentDisplayStyle = DisplayStyles.TwoEditors;
     Populate();
     toolStripButtonSingleEditor.BackColor = SystemColors.Control;
     toolStripButtonDoubleEditor.BackColor = SystemColors.ControlDark;
     Slyce.Common.Utility.ResumePainting(this);
 }
        public ucSimpleDiffEditor(string relativePath, bool oldFileExists, string oldFileContents, string newFileContents, bool filesAreSame, DisplayStyles displayStyle)
        {
            InitializeComponent();

            //toolStripButtonDoubleEditor.Visible = false;
            //toolStripButtonSingleEditor.Visible = false;

            Reset(relativePath, oldFileExists, oldFileContents, newFileContents, filesAreSame, displayStyle);
        }
 public void Reset(string relativePath, bool oldFileExists, string oldFileContents, string newFileContents, bool filesAreSame, DisplayStyles displayStyle)
 {
     RelativePath        = relativePath;
     OldFileExists       = oldFileExists;
     OldFileContents     = oldFileContents;
     NewFileContents     = newFileContents;
     CurrentDisplayStyle = displayStyle;
     FilesAreSame        = filesAreSame;
     Populate();
 }
 public void Reset(string relativePath, bool oldFileExists, string oldFileContents, string newFileContents, bool filesAreSame, DisplayStyles displayStyle)
 {
     RelativePath = relativePath;
     OldFileExists = oldFileExists;
     OldFileContents = oldFileContents;
     NewFileContents = newFileContents;
     CurrentDisplayStyle = displayStyle;
     FilesAreSame = filesAreSame;
     Populate();
 }
 public UserFriendlyException(string userMessage, DisplayStyles displayStyle = DisplayStyles.NonBlockingMessage)
 {
     this.UserMessage  = userMessage;
     this.DisplayStyle = displayStyle;
 }
 public DataGridViewTickChartCell()
 {
     m_Style = DisplayStyles.XP;
     UpdateStyle();
     Value = m_BackGroundImage;
 }
        public ucSimpleDiffEditor(string relativePath, bool oldFileExists, string oldFileContents, string newFileContents, bool filesAreSame, DisplayStyles displayStyle)
        {
            InitializeComponent();

            //toolStripButtonDoubleEditor.Visible = false;
            //toolStripButtonSingleEditor.Visible = false;

            Reset(relativePath, oldFileExists, oldFileContents, newFileContents, filesAreSame, displayStyle);
        }
 private void toolStripButtonSingleEditor_Click(object sender, EventArgs e)
 {
     Slyce.Common.Utility.SuspendPainting(this);
     CurrentDisplayStyle = DisplayStyles.SingleEditor;
     Populate();
     toolStripButtonSingleEditor.BackColor = SystemColors.ControlDark;
     toolStripButtonDoubleEditor.BackColor = SystemColors.Control;
     Slyce.Common.Utility.ResumePainting(this);
 }
 private void radioButtonTwoEditors_CheckedChanged(object sender, EventArgs e)
 {
     Slyce.Common.Utility.SuspendPainting(this);
     CurrentDisplayStyle = DisplayStyles.TwoEditors;
     Populate();
     Slyce.Common.Utility.ResumePainting(this);
 }