public DataConverTool(DevComponents.DotNetBar.LabelX lab_progress, DevComponents.DotNetBar.LabelX lb, DevExpress.XtraEditors.MarqueeProgressBarControl progressBar, DevComponents.DotNetBar.Controls.RichTextBoxEx MessageShow,AxMapControl axMap) { this.axMapControl = axMap; this.lb = lb; this.lab_progress = lab_progress; this.progressBar = progressBar; this.MessageShow = MessageShow; }
public UpdatesAvailableDialog(Image appIcon, string curVersion, string curChannel, string curBuild, string newVersion, string newChannel, string newBuild, UpdateNotes updateNotes, bool installAsAdmin) { InitializeComponent(); StyleManager.UpdateAmbientColors(this); if (installAsAdmin) { ButtonX_Install.Image = BaseFeatures.GetUacShieldImage(); } PictureBox_AppIcon.Image = appIcon ?? Icon.ToBitmap(); LabelX_CurrentVersion.Text = curVersion; LabelX_CurrentChannel.Text = curChannel; LabelX_CurrentBuild.Text = curBuild; LabelX_NewVersion.Text = newVersion; LabelX_NewChannel.Text = newChannel; LabelX_NewBuild.Text = newBuild; // Update Notes Control updateNotesControl = null; switch (updateNotes.ContentType) { case UpdateNotesContentType.PlainText: var newUpdateNotesControl = new DevComponents.DotNetBar.Controls.RichTextBoxEx { Text = updateNotes.Content }; newUpdateNotesControl.BackgroundStyle.Class = DevComponents.DotNetBar.Rendering.ElementStyleClassKeys.RichTextBoxBorderKey; updateNotesControl = newUpdateNotesControl; break; case UpdateNotesContentType.Markdown: updateNotesControl = new TheArtOfDev.HtmlRenderer.WinForms.HtmlPanel { Text = CommonMark.CommonMarkConverter.Convert(updateNotes.Content) }; break; case UpdateNotesContentType.HTML: updateNotesControl = new TheArtOfDev.HtmlRenderer.WinForms.HtmlPanel { Text = updateNotes.Content }; break; } if (updateNotesControl is object) { updateNotesControl.Dock = DockStyle.Fill; Panel_Changelog.Controls.Add(updateNotesControl); } }
/// <summary> /// add tab page /// </summary> /// <param name="name"></param> /// <param name="stationList"></param> private void addTabpages(string name, List <string> stationList) { recordBox = new Hashtable(); stationTabItem = new Hashtable(); lineTabItem = new Hashtable(); DevComponents.DotNetBar.TabControl tabControl = new DevComponents.DotNetBar.TabControl(); TabControlPanel tabControlPanel = new TabControlPanel(); TabItem tabItem = new TabItem(); tabControl.Dock = DockStyle.Fill; tabControl.TabAlignment = eTabStripAlignment.Bottom; tabControl.Style = eTabStripStyle.Office2007Document; tabControlPanel.Controls.Add(tabControl); tabControlPanel.Dock = System.Windows.Forms.DockStyle.Fill; tabItem.AttachedControl = tabControlPanel; tabItem.Text = name; tabItem.ImageIndex = 1; statue_tabControl.Controls.Add(tabControlPanel); statue_tabControl.Tabs.Add(tabItem); lineTabItem.Add(name, tabItem); foreach (string name_ in stationList) { TabItem tabItem_ = new TabItem(); TabControlPanel tabControlPanel_ = new TabControlPanel(); DevComponents.DotNetBar.Controls.RichTextBoxEx richTextBox = new DevComponents.DotNetBar.Controls.RichTextBoxEx(); richTextBox.Dock = DockStyle.Fill; richTextBox.BorderStyle = BorderStyle.None; tabControlPanel_.Controls.Add(richTextBox); tabControlPanel_.Dock = DockStyle.Fill; tabItem_.AttachedControl = tabControlPanel_; tabItem_.Text = name_; tabItem_.Image = Properties.Resources.stop3; tabControl.Controls.Add(tabControlPanel_); tabControl.Tabs.Add(tabItem_); stationTabItem.Add(name + name_, tabItem_); recordBox.Add(name + name_, richTextBox); } }