internal static IColorBase CreateInstance() { lock (_cLock) { if (m_colorBase == null) { m_colorBase = new ClutterHeightsSymbol(); } return m_colorBase; } }
public ColorForm(IColorBase iCB) { this.components = null; this.m_Transparent = 0xff; this.m_ShowLegendTab = true; this.InitializeComponent(true); this.m_legendmanager = LegendManagement.CretateInstance(); this.InitializeSystem(this.m_legendmanager, ref iCB); this.display1.InitializeSystem(iCB); this.display1.ValueChanged += new EventHandler(this.display1_ValueChanged); this.trackBarTransport.Visible = false; this.Percent.Visible = false; this.Transparent.Visible = false; }
public ColorForm(IColorBase iCB, int transparent, bool showLegendTab) { this.components = null; this.m_Transparent = 0xff; this.m_ShowLegendTab = true; this.m_ShowLegendTab = showLegendTab; this.InitializeComponent(showLegendTab); this.m_legendmanager = LegendManagement.CretateInstance(); this.InitializeSystem(this.m_legendmanager, ref iCB); this.display1.InitializeSystem(iCB); this.display1.ValueChanged += new EventHandler(this.display1_ValueChanged); this.trackBarTransport.Visible = showLegendTab; this.Percent.Visible = showLegendTab; this.Transparent.Visible = showLegendTab; if (showLegendTab) { this.trackBarTransport.Value = Convert.ToInt32((int) (((0xff - transparent) * 100) / 0xff)); this.Percent.Text = this.trackBarTransport.Value + "%"; this.m_Transparent = transparent; } }
private void btn_Apply_Click(object sender, EventArgs e) { if (this.m_ShowLegendTab) { this.m_Current = this.display1.CurrentSetDisplay; } if (this.OnFormButtonClick(this.btn_Apply, new ColorFormAction(this.CurrentSetProperty4U, this.m_ShowLegendTab, this.m_Transparent))) { this.OnColorLegendDisplay(sender); this.btn_Apply.Enabled = false; } }
public ColorForm(IColorBase iCB, DisplayType DefaultDT, FieldType DefaultFT) : this(iCB) { this.display1.ValueChanged -= new EventHandler(this.display1_ValueChanged); this.display1.InitializeSystemDefault(DefaultDT, DefaultFT); this.display1.ValueChanged += new EventHandler(this.display1_ValueChanged); }
private void InitializeSystem(LegendManagement LM, ref IColorBase iCB) { if ((LM != null) && (LM.Utility != null)) { foreach (LegendUtility utility in LM.Utility) { if (utility.ClassName.Equals(iCB.Properties2DisplayAll.Name)) { iCB.Properties2DisplayAll.IsAddToLegend = true; break; } } } }
private void btn_Cancel_Click(object sender, EventArgs e) { base.DialogResult = DialogResult.Cancel; this.m_Current = null; base.Close(); }