private FrmActHeatMap(Core core, CtlAutoList lvh, Column source1D, DistanceMatrix source2D) { this.InitializeComponent(); UiControls.SetIcon(this); this._maxColour = core.Options.HeatMapMaxColour; this._nanColour = core.Options.HeatMapNanColour; this._minColour = core.Options.HeatMapMinColour; this._oorColour = core.Options.HeatMapOorColour; this._core = core; this._sourceList = lvh; this._source1D = source1D; this._source2D = source2D; if (source1D != null) { this.Text = UiControls.GetFileName(source1D.DisplayName); } else { this.Text = UiControls.GetFileName("Distance matrix"); } this.ctlTitleBar1.Text = this.Text; this.GenerateHeat(); }
public void Initialise(FrmSelectList form, Core core) { this._listBox = new ListView(); this._listBox.Dock = DockStyle.Fill; this._listBox.Margin = new Padding(8, 8, 8, 8); this._listBox.Visible = true; form.panel1.Controls.Add(this._listBox); this._lvh = new CtlAutoList(this._listBox, core, null); }
internal FrmActEvaluate(Core core, ArgsClusterer config) : this() { this._core = core; this._templateConfig = config; this._lvhClusters = new CtlAutoList(this._lstClusters, core, null); this._lvhConfigs = new CtlAutoList(this._lstParams, core, null); this._lvhStatistics = new CtlAutoList(this._lstStatistics, core, null); this._lvhStatistics.Visible = false; this._chcClusters = new ChartHelperForClusters(null, core, this.panel6); this._lvhConfigs.Activate += this._lstParams_SelectedIndexChanged; this._lvhClusters.Activate += this._lstClusters_SelectedIndexChanged; this._lvhStatistics.Activate += this._lstStats_SelectedIndexChanged; // UiControls.CompensateForVisualStyles(this); }
/// <summary> /// Shows a 2D heatmap /// </summary> public static void Show(Core core, CtlAutoList lvh, DistanceMatrix source) { FrmActHeatMap frm = new FrmActHeatMap(core, lvh, null, source); frm.Show(lvh.ListView.FindForm()); }
/// <summary> /// Shows a 1D heatmap /// </summary> public static void Show(Core core, CtlAutoList lvh, Column source) { FrmActHeatMap frm = new FrmActHeatMap(core, lvh, source, null); frm.Show(lvh.ListView.FindForm()); }
private FrmBigList(Core core, IDataSet config, EShow show, object automaticAddTemplate) { this.InitializeComponent(); UiControls.SetIcon(this); this._listViewHelper = new CtlAutoList(this.listView1, core, null); this.listView1.SelectedIndexChanged += this.listView1_SelectedIndexChanged; this._listViewHelper.Activate += this.listView1_ItemActivate; this._config = config; this._automaticAddTemplate = automaticAddTemplate; this.Text = "List Editor"; this.ctlTitleBar1.Text = config.Title; this.ctlTitleBar1.SubText = config.SubTitle; this.UpdateListFromSource(); if (config.ListIsSelfUpdating) { this._btnCancel.Visible = false; } if (!config.HasItemEditor) // Required for ADD EDIT VIEW DUPLICATE { this._btnAdd.Visible = false; this._btnEdit.Visible = false; this._btnView.Visible = false; this._btnDuplicate.Visible = false; } if (!config.ListSupportsReorder) // Required for UP DOWN { this._btnUp.Visible = false; this._btnDown.Visible = false; } if ((!config.ListSupportsChanges && !config.ListIsSelfUpdating) && show != EShow.Acceptor) // Required for ANY MODIFICATION { this._btnAdd.Visible = false; this._btnDuplicate.Visible = false; this._btnRemove.Visible = false; this._btnOk.Visible = false; this._btnCancel.Text = "Close"; } if (show == EShow.ReadOnly) // || Required for ANY MODIFICATION { this._btnAdd.Visible = false; this._btnEdit.Visible = false; this._btnDuplicate.Visible = false; this._btnRemove.Visible = false; this._btnEnableDisable.Visible = false; this._btnUp.Visible = false; this._btnDown.Visible = false; this._btnOk.Visible = false; this._btnCancel.Text = "Close"; } // UiControls.CompensateForVisualStyles(this); }