public override bool EnableNext() { if (CheckForUpdatesInProgress || _backgroundWorker.IsBusy) { return(false); } if (IsInAutomatedUpdatesMode) { return(true); } if (downloadUpdateRadioButton.Checked) { if (dataGridViewPatches.SelectedRows.Count == 1) { DataGridViewExRow row = (DataGridViewExRow)dataGridViewPatches.SelectedRows[0]; if (row.Enabled) { return(true); } } } else if (selectFromDiskRadioButton.Checked) { if (WizardHelpers.IsValidFile(FilePath, out _)) { return(true); } } return(false); }
public override bool EnableNext() { if (CheckForUpdatesInProgress) { return(false); } if (IsInAutomatedUpdatesMode) { return(true); } if (downloadUpdateRadioButton.Checked) { if (dataGridViewPatches.SelectedRows.Count == 1) { DataGridViewExRow row = (DataGridViewExRow)dataGridViewPatches.SelectedRows[0]; if (row.Enabled) { return(true); } } } else if (selectFromDiskRadioButton.Checked) { if (isValidFile(fileNameTextBox.Text)) { return(true); } } return(false); }
public override bool EnableNext() { if (dataGridViewPatches.SelectedRows.Count == 1) { DataGridViewExRow row = (DataGridViewExRow)dataGridViewPatches.SelectedRows[0]; if (row.Enabled) { return(true); } } return(false); }
private DataGridViewExRow CreateRow(string Key, string Value) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; return(r); }
public void AddEntry(string Key, string Value) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; AddRow(r); }
public void AddEntry(string Key, string Value, IEnumerable <ToolStripMenuItem> contextMenuItems) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; r.Tag = contextMenuItems; AddRow(r); }
public void AddEntry(string Key, string Value, Color fontColor) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; r.Cells[1].Style.ForeColor = fontColor; AddRow(r); dataGridViewEx1.DefaultCellStyle = new DataGridViewCellStyle(); }
public void AddEntry(string Key, FolderListItem Value, IEnumerable <ToolStripMenuItem> contextMenuItems) { // Special case for folders: CA-33311 if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.Cells.Add(new DataGridViewTextBoxCell()); r.Cells[0].Value = Key; r.Cells.Add(new FolderCell(Value)); r.Tag = contextMenuItems; AddRow(r); }
internal void AddEntryLink(string Key, string Value, List <ToolStripMenuItem> contextMenuItems, Action action) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1] = new DataGridViewLinkCell(); r.Cells[1].Value = Value; r.Cells[1].Tag = action; r.Tag = contextMenuItems; AddRow(r); }
internal void AddEntryLink(string Key, string Value, IEnumerable<ToolStripMenuItem> contextMenuItems, Action action) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1] = new DataGridViewLinkCell(); r.Cells[1].Value = Value; r.Cells[1].Tag = action; r.Tag = contextMenuItems; AddRow(r); }
public void AddEntry(string Key, FolderListItem Value, IEnumerable<ToolStripMenuItem> contextMenuItems) { // Special case for folders: CA-33311 if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.Cells.Add(new DataGridViewTextBoxCell()); r.Cells[0].Value = Key; r.Cells.Add(new FolderCell(Value)); r.Tag = contextMenuItems; AddRow(r); }
public void AddEntry(string Key, string Value, IEnumerable<ToolStripMenuItem> contextMenuItems, Color fontColor) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; r.Cells[1].Style.ForeColor = fontColor; r.Tag = contextMenuItems; AddRow(r); dataGridViewEx1.DefaultCellStyle = new DataGridViewCellStyle(); }
public void AddEntry(string Key, string Value) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; AddRow(r); }
public void AddEntry(string Key, string Value, List<ToolStripMenuItem> contextMenuItems) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; r.Tag = contextMenuItems; AddRow(r); }
private DataGridViewExRow CreateRow(string Key, string Value) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; return r; }