/// <summary> /// Links the specified tree view to this tree view. Whenever either treeview /// scrolls, the other will scroll too. /// </summary> /// <param name="treeView">The TreeView to link.</param> public void AddLinkedTreeView(MyTreeView treeView) { if (treeView == this) { throw new ArgumentException("Cannot link a TreeView to itself!", "treeView"); } if (!linkedTreeViews.Contains(treeView)) { //add the treeview to our list of linked treeviews linkedTreeViews.Add(treeView); //add this to the treeview's list of linked treeviews treeView.AddLinkedTreeView(this); //make sure the TreeView is linked to all of the other TreeViews that this TreeView is linked to for (int i = 0; i < linkedTreeViews.Count; i++) { //get the linked treeview var linkedTreeView = linkedTreeViews[i]; //link the treeviews together if (linkedTreeView != treeView) { linkedTreeView.AddLinkedTreeView(treeView); } } } }
/// <summary> /// Sets the destination's scroll positions to that of the source. /// </summary> /// <param name="source">The source of the scroll positions.</param> /// <param name="dest">The destinations to set the scroll positions for.</param> private void SetScrollPositions(MyTreeView source, MyTreeView dest) { //get the scroll positions of the source int horizontal = User32.GetScrollPos(source.Handle, Orientation.Horizontal); int vertical = User32.GetScrollPos(source.Handle, Orientation.Vertical); //set the scroll positions of the destination User32.SetScrollPos(dest.Handle, Orientation.Horizontal, horizontal, true); User32.SetScrollPos(dest.Handle, Orientation.Vertical, vertical, true); }
private void MainLoaded(object sender, EventArgs e) { view = new MyTreeView(); elementHost1.Child = view; if( !m_dbTree.OpenDB() ) { MessageBox.Show(m_dbTree.LastErrorString); } m_dbTree.UpdateDirTree(); view.SetData(m_dbTree.DirProvider); }
public static void Main() { Form f = new Form(); var tv = new MyTreeView(); tv.RealTreeView.Nodes.Add("zero").Nodes.Add("sub-zero"); tv.RealTreeView.Nodes.Add("one"); tv.RealTreeView.Nodes.Add("two"); tv.RealTreeView.Nodes.Add("three"); tv.Dock = DockStyle.Fill; f.Controls.Add(tv); Application.Run(f); }
/// <summary> /// Links the specified tree view to this tree view. Whenever either treeview /// scrolls, the other will scroll too. /// </summary> /// <param name="treeView">The TreeView to link.</param> public void AddLinkedTreeView(MyTreeView treeView) { if (treeView == this) { throw new ArgumentException("Cannot link a TreeView to itself!", "treeView"); } if (!linkedTreeViews.Contains(treeView)) { //add the treeview to our list of linked treeviews linkedTreeViews.Add(treeView); //add this to the treeview's list of linked treeviews treeView.AddLinkedTreeView(this); } }
private void CriteriasAdd_button_Click_1(object sender, EventArgs e) { criterias.Add(Criteria_textBox.Text); string parameter_input = Criteria_textBox.Text; //Dictionary<Dictionary<Parameter, level>, parent> if (treeView1.SelectedNode == null) { treeView1.Nodes[0].Nodes.Add(parameter_input); AhpParameter.Add(new Dictionary <string, int> { { parameter_input, Math.Abs(MyTreeView.level(treeView1.SelectedNode)) } }, parents); parameterObject[parameter_input] = new Parameter { name = parameter_input, level = Math.Abs(MyTreeView.level(treeView1.SelectedNode)), parents = parentsList }; parameterList.Add(parameterObject[parameter_input]); } else { treeView1.SelectedNode.Nodes.Add(parameter_input); string parent_name = treeView1.SelectedNode.Text; treeView1.SelectedNode = SearchTreeView(Criteria_textBox.Text, treeView1.Nodes); parentsList = new Queue <Parameter>(); while (MyTreeView.level(treeView1.SelectedNode) > 1) { string tmp = treeView1.SelectedNode.Parent.Text; parentsList.Enqueue(parameterObject[tmp]); treeView1.SelectedNode = SearchTreeView(tmp, treeView1.Nodes); } if (parameterObject[parent_name].children == null) { childrenList = new List <Parameter>(); } TreeNode selectCurrentNode = SearchTreeView(parameter_input, treeView1.Nodes); parameterObject[parameter_input] = new Parameter { name = parameter_input, level = Math.Abs(MyTreeView.level(selectCurrentNode)), parents = parentsList }; childrenList.Add(parameterObject[parameter_input]); parameterObject[parent_name].children = childrenList; parameterList.Add(parameterObject[parameter_input]); } treeView1.ExpandAll(); Criterias_comboBox.Items.Add(Criteria_textBox.Text); Criteria_textBox.Clear(); }
/// <summary> /// 将流程以树形图显示 /// </summary> /// <param name="jobName">流程名字</param> /// <param name="job">输入流程</param> /// <returns></returns> private static TreeView JobToTreeView(string jobName, Job job) { var treeView = new MyTreeView { Name = jobName, Dock = DockStyle.Fill, Font = new Font("微软雅黑", 10), ShowNodeToolTips = true, AllowDrop = true, Scrollable = true }; treeView.AfterSelect += TreeView_AfterSelect; treeView.AfterLabelEdit += TreeView_AfterLabelEdit; treeView.MouseDoubleClick += TreeView_MouseDoubleClick; treeView.MouseClick += TreeView_MouseClick; treeView.ItemDrag += TreeView_ItemDrag; treeView.DragDrop += TreeView_DragDrop; treeView.DragEnter += TreeView_DragEnter; DItemAndSource.Add(jobName, new Dictionary <TreeNode, TreeNode>()); foreach (var _ in job.Items) { AddToolToTreeView(treeView, _); } foreach (var node in treeView.Nodes) { foreach (var _ in ((TreeNode)node).Nodes) { if (!((TreeNode)_).Text.Contains("<")) { continue; } var source = Regex.Split(((TreeNode)_).Text, "<-")[1]; var sourceTool = Regex.Split(source, "->")[0]; var sourceIo = Regex.Split(source, "->")[1]; var ioNode = FindToolIoNodeByName(treeView, sourceTool, sourceIo); DItemAndSource[jobName].Add((TreeNode)_, ioNode); } } treeView.AfterExpand += TreeView_AfterExpand; treeView.AfterCollapse += TreeView_AfterCollapse; return(treeView); }
public MyGuiControlTreeView( IMyGuiControlsParent parent, Vector2 position, Vector2 size, Vector4 backgroundColor, bool canHandleKeyboardActiveControl) : base(parent, position, size, null, null) { Visible = true; m_treeBackgroundColor = backgroundColor; m_canHandleKeyboardActiveControl = canHandleKeyboardActiveControl; m_treeView = new MyTreeView(this, m_parent.GetPositionAbsolute() + m_position - m_size.Value / 2, m_size.Value); }
public void TestAdapteeWithJustRoot() { var treeView = new MyTreeView(); //has a root MyNode var treeViewModel = new TreeViewModel(); var treeViewWithSelection = new TreeViewWithSelection(treeView); treeViewModel.Adaptee = treeViewWithSelection; treeViewModel.AutoExpand = AutoExpandMode.Disabled; treeViewModel.ShowRoot = true; treeViewModel.CollapseAll(); treeViewModel.ExpandAll(); var expandedItem = treeViewModel.GetExpandedItems().First(); Assert.AreEqual(expandedItem, treeView.Root); Assert.AreEqual(treeViewWithSelection, treeViewModel.Adaptee); Assert.AreEqual(treeViewModel.AutoExpand, AutoExpandMode.Disabled); Assert.IsTrue(treeViewModel.ShowRoot); }
public DocumentSwitcher(Gtk.Window parent, bool startWithNext) : base(Gtk.WindowType.Popup) { this.documents = new List <Document> (IdeApp.Workbench.Documents.OrderByDescending(d => d.LastTimeActive)); this.TransientFor = parent; this.CanFocus = true; this.Decorated = false; this.DestroyWithParent = true; //the following are specified using stetic, but documenting them here too //this.Modal = true; //this.WindowPosition = Gtk.WindowPosition.CenterOnParent; //this.TypeHint = WindowTypeHint.Menu; this.Build(); treeviewPads = new MyTreeView(); scrolledwindow1.Child = treeviewPads; treeviewDocuments = new MyTreeView(); scrolledwindow2.Child = treeviewDocuments; padListStore = new Gtk.ListStore(typeof(Gdk.Pixbuf), typeof(string), typeof(Pad)); treeviewPads.Model = padListStore; treeviewPads.AppendColumn("icon", new Gtk.CellRendererPixbuf(), "pixbuf", 0); treeviewPads.AppendColumn("text", new Gtk.CellRendererText(), "text", 1); treeviewPads.HeadersVisible = false; treeviewPads.Selection.Changed += TreeviewPadsSelectionChanged; documentListStore = new Gtk.ListStore(typeof(Gdk.Pixbuf), typeof(string), typeof(Document)); treeviewDocuments.Model = documentListStore; treeviewDocuments.AppendColumn("icon", new Gtk.CellRendererPixbuf(), "pixbuf", 0); treeviewDocuments.AppendColumn("text", new Gtk.CellRendererText(), "text", 1); treeviewDocuments.HeadersVisible = false; treeviewDocuments.Selection.Changed += TreeviewDocumentsSelectionChanged; FillLists(); this.labelFileName.Ellipsize = Pango.EllipsizeMode.Start; if (IdeApp.Workbench.ActiveDocument != null) { SwitchToDocument(); SelectDocument(startWithNext ? GetNextDocument(IdeApp.Workbench.ActiveDocument) : GetPrevDocument(IdeApp.Workbench.ActiveDocument)); } else { SwitchToPad(); } }
protected void Page_Load(object sender, EventArgs e) { //Сохранение рефрена PostBack ивента PostBackString = ClientScript.GetPostBackEventReference(this, "MyCustomArgument"); //DataBound дерева GetTreeViewItems(); if (!IsPostBack) { MyTreeView.CollapseAll(); } else //Если страница загружена через PostBack - восстановить состояние нодов (открытые, звкрытые) { RestoreChildeNodeState(MyTreeView.Nodes); } }
void OnEnable() { Undo.undoRedoPerformed += OnUndoRedoPerformed; var treeViewState = new TreeViewState(); var jsonState = SessionState.GetString(kSessionStateKeyPrefix + asset.GetInstanceID(), ""); if (!string.IsNullOrEmpty(jsonState)) { JsonUtility.FromJsonOverwrite(jsonState, treeViewState); } var treeModel = new TreeModel <MyTreeElement> (asset.treeElements); m_TreeView = new MyTreeView(treeViewState, treeModel); m_TreeView.beforeDroppingDraggedItems += OnBeforeDroppingDraggedItems; m_TreeView.Reload(); }
public void TestAdapteeWithJustRoot() { var treeView = new MyTreeView(); //has a root MyNode var treeViewModel = new TreeViewModel(); var treeViewWithSelection = new TreeViewWithSelection(treeView); treeViewModel.Adaptee = treeViewWithSelection; treeViewModel.AutoExpand = AutoExpandMode.Disabled; treeViewModel.ShowRoot = true; treeViewModel.CollapseAll(); treeViewModel.ExpandAll(); var expandedItem = treeViewModel.GetExpandedItems().First(); Assert.AreEqual(expandedItem, treeView.Root); Assert.AreEqual(treeViewWithSelection, treeViewModel.Adaptee); Assert.AreEqual(treeViewModel.AutoExpand, AutoExpandMode.Disabled); Assert.IsTrue(treeViewModel.ShowRoot); }
public MainWindow() : base(Gtk.WindowType.Toplevel) { Build(); ArticuloAction.Activated += delegate { MyTreeView myTreeView = new MyTreeView(); addPage(myTreeView, "Articulo"); whatPage(noteBook.GetTabLabel(noteBook.GetNthPage(0))); }; CategoriaAction.Activated += delegate { MyTreeView myTreeView = new MyTreeView(); addPage(myTreeView, "Categoria"); whatPage(myTreeView); }; SalirAction.Activated += delegate { Application.Quit(); }; }
void OnEnable() { Undo.undoRedoPerformed += OnUndoRedoPerformed; var treeViewState = new TreeViewState(); var jsonState = SessionState.GetString(kSessionStateKeyPrefix + asset.GetInstanceID(), ""); if (!string.IsNullOrEmpty(jsonState)) { JsonUtility.FromJsonOverwrite(jsonState, treeViewState); } var treeModel = new TreeModel <DialogTreeElement>(asset.treeElements); m_TreeView = new MyTreeView(treeViewState, treeModel); m_TreeView.beforeDroppingDraggedItems += OnBeforeDroppingDraggedItems; m_TreeView.Reload(); m_SearchField = new SearchField(); m_SearchField.downOrUpArrowKeyPressed += m_TreeView.SetFocusAndEnsureSelectedItem; }
public void Jump_Window(object sender, EventArgs e) { MyTreeView mytreeview = (MyTreeView)sender; TreeView selected_treeview = mytreeview.Get_Treeview(); TreeViewItem item = (TreeViewItem)selected_treeview.SelectedItem; string index = item.Name; string where_cmd = "Node_ID='" + index + "'"; DataTable dt = database_builder.Select_Table(mytreeview.Name, where_cmd); if (dt != null) { if (dt.Rows.Count > 0) { DataRow dr = dt.Rows[0]; if (dr[3].ToString() == "jumpwindow") { Show_SubWindow_in_Grid(dr[5].ToString(), dr[4].ToString()); } } } }
public void cambiarEventosTree(bool estado, MyTreeView tree) { if (tree == treeConjuntoMaterias) { if (estado) { treeConjuntoMaterias.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeConjuntoMaterias_AfterCheck); treeConjuntoMaterias.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeConjuntoMaterias_AfterSelect); } else { treeConjuntoMaterias.AfterCheck -= new System.Windows.Forms.TreeViewEventHandler(this.treeConjuntoMaterias_AfterCheck); treeConjuntoMaterias.AfterSelect -= new System.Windows.Forms.TreeViewEventHandler(this.treeConjuntoMaterias_AfterSelect); } } else if (tree == treeMateria) { if (estado) { treeMateria.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeMateria_AfterCheck_1); treeMateria.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeMateria_AfterSelect); } else { treeMateria.AfterCheck -= new System.Windows.Forms.TreeViewEventHandler(this.treeMateria_AfterCheck_1); treeMateria.AfterSelect -= new System.Windows.Forms.TreeViewEventHandler(this.treeMateria_AfterSelect); } } else { if (estado) { treeGrupo.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeGrupo_AfterCheck); } else { treeGrupo.AfterCheck -= new System.Windows.Forms.TreeViewEventHandler(this.treeGrupo_AfterCheck); } } }
void initTreeView() { if (isInit) { return; } UnityEngine.Debug.Log("初始化一次"); var treeViewState = new TreeViewState(); var jsonState = SessionState.GetString(kSessionStateKeyPrefix + asset.GetInstanceID(), ""); if (!string.IsNullOrEmpty(jsonState)) { JsonUtility.FromJsonOverwrite(jsonState, treeViewState); } var treeModel = new TreeModel <MyTreeElement> (asset.treeElements); m_TreeView = new MyTreeView(treeViewState, treeModel); m_TreeView.beforeDroppingDraggedItems += OnBeforeDroppingDraggedItems; m_TreeView.Reload(); m_SearchField = new SearchField(); m_SearchField.downOrUpArrowKeyPressed += m_TreeView.SetFocusAndEnsureSelectedItem; }
private void Add_Event() { string where_cmd = "ParentWindow='MainWindow'"; DataTable dt = database_builder.Select_Table("ALLGrid", where_cmd); foreach (UIElement element in MainGrid.Children) { Type type = element.GetType(); if (type.ToString() == "System.Windows.Controls.Grid") { Grid subgrid = (Grid)element; foreach (UIElement subelement in subgrid.Children) { Type subtype = subelement.GetType(); if (subtype.ToString() == "WpfControls.MyTreeView") { MyTreeView mytreeview = (MyTreeView)subelement; mytreeview.JumpWindow += new EventHandler(Jump_Window); } } } } }
public MainWindow() : base(Gtk.WindowType.Toplevel) { Build (); ArticuloAction.Activated += delegate { MyTreeView myTreeView = new MyTreeView (); addPage (myTreeView, "Articulo"); whatPage(noteBook.GetTabLabel(noteBook.GetNthPage(0))); }; CategoriaAction.Activated += delegate { MyTreeView myTreeView = new MyTreeView (); addPage (myTreeView, "Categoria"); whatPage(myTreeView); }; SalirAction.Activated += delegate { Application.Quit (); }; }
private void InitializeTreeView() { var root = new TreeNode("Root node", "RootValue", "~/Images/SampleIcon.gif"); var child1 = new TreeNode("Child node 1", "Child1Value"); var child2 = new TreeNode("Child node 2", "Child2Value"); var child11 = new TreeNode("Child node 11", "Child11Value"); var child12 = new TreeNode("Child node 12", "Child12Value"); var child21 = new TreeNode("Child node 21", "Child21Value"); var child22 = new TreeNode("Child node 22", "Child22Value"); child1.ChildNodes.Add(child11); child1.ChildNodes.Add(child12); child2.ChildNodes.Add(child21); child2.ChildNodes.Add(child22); root.ChildNodes.Add(child1); root.ChildNodes.Add(child2); MyTreeView.Nodes.Add(root); MyTreeView.CollapseAll(); MyTreeView.ShowCheckBoxes = TreeNodeTypes.Leaf; MyTreeView.ShowLines = true; }
public CmdBarTree(IPXV_Inst Inst, ref MyTreeView Tree) { m_Inst = Inst; m_uiInst = (IUIX_Inst)Inst.GetExtension("UIX"); m_Tree = Tree; }
// 解析主窗体 public static void ParseWindow(Window mywindow, SQL_Connect_Builder sql_builder, Grid MainGrid) { // 解析所有的Grid #region string where_cmd = "ParentWindow='" + mywindow.Name + "'"; DataTable allgriddt = sql_builder.Select_Table("ALLGrid", where_cmd); if (allgriddt != null) { if (allgriddt.Rows.Count > 0) { foreach (DataRow dr in allgriddt.Rows) { Grid grid = new Grid(); // 水平对齐 if (dr[3].ToString() == "Left") { grid.HorizontalAlignment = HorizontalAlignment.Left; } if (dr[3].ToString() == "Center") { grid.HorizontalAlignment = HorizontalAlignment.Center; } if (dr[3].ToString() == "Right") { grid.HorizontalAlignment = HorizontalAlignment.Right; } if (dr[3].ToString() == "Stretch") { grid.HorizontalAlignment = HorizontalAlignment.Stretch; } // 垂直对齐 if (dr[4].ToString() == "Bottom") { grid.VerticalAlignment = VerticalAlignment.Bottom; } if (dr[4].ToString() == "Center") { grid.VerticalAlignment = VerticalAlignment.Center; } if (dr[4].ToString() == "Stretch") { grid.VerticalAlignment = VerticalAlignment.Stretch; } if (dr[4].ToString() == "Top") { grid.VerticalAlignment = VerticalAlignment.Top; } int marginLeft = int.Parse(dr[5].ToString()); int marginRight = int.Parse(dr[6].ToString()); int marginTop = int.Parse(dr[7].ToString()); int marginBottom = int.Parse(dr[8].ToString()); grid.Margin = new Thickness(marginLeft, marginTop, marginRight, marginBottom); grid.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(dr[9].ToString())); grid.Name = dr[0].ToString(); if (dr[10].ToString() != "") { grid.Width = double.Parse(dr[10].ToString()); } if (dr[11].ToString() != "") { grid.Height = double.Parse(dr[11].ToString()); } if (dr[2].ToString() == "MainGrid") { // 在主页面下 MainGrid.Children.Add(grid); } else { // 不在主页面下 string GridName = dr[2].ToString(); foreach (UIElement element in MainGrid.Children) { try { Grid mygrid = (Grid)element; if (mygrid.Name == dr[2].ToString()) { mygrid.Children.Add(grid); } } catch { } } } } } } #endregion // 解析所有的MyTreeView #region where_cmd = "ParentWindow='" + mywindow.Name + "'"; DataTable allMyTreeView = sql_builder.Select_Table("ALLMyTreeView", where_cmd); if (allMyTreeView != null) { if (allMyTreeView.Rows.Count > 0) { foreach (DataRow dr in allMyTreeView.Rows) { DataTable TreeViewItemsdt = sql_builder.Select_Table(dr[0].ToString()); MyTreeView treeview = new MyTreeView(TreeViewItemsdt); treeview.Name = dr[0].ToString(); if (dr[3].ToString() == "Left") { treeview.HorizontalAlignment = HorizontalAlignment.Left; } if (dr[3].ToString() == "Center") { treeview.HorizontalAlignment = HorizontalAlignment.Center; } if (dr[3].ToString() == "Right") { treeview.HorizontalAlignment = HorizontalAlignment.Right; } if (dr[3].ToString() == "Stretch") { treeview.HorizontalAlignment = HorizontalAlignment.Stretch; } // 垂直对齐 if (dr[4].ToString() == "Bottom") { treeview.VerticalAlignment = VerticalAlignment.Bottom; } if (dr[4].ToString() == "Center") { treeview.VerticalAlignment = VerticalAlignment.Center; } if (dr[4].ToString() == "Stretch") { treeview.VerticalAlignment = VerticalAlignment.Stretch; } if (dr[4].ToString() == "Top") { treeview.VerticalAlignment = VerticalAlignment.Top; } int marginLeft = int.Parse(dr[5].ToString()); int marginRight = int.Parse(dr[6].ToString()); int marginTop = int.Parse(dr[7].ToString()); int marginBottom = int.Parse(dr[8].ToString()); treeview.Margin = new Thickness(marginLeft, marginTop, marginRight, marginBottom); treeview.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(dr[9].ToString())); treeview.Name = dr[0].ToString(); if (dr[10].ToString() != "") { treeview.Width = double.Parse(dr[10].ToString()); } if (dr[11].ToString() != "") { treeview.Height = double.Parse(dr[11].ToString()); } if (dr[2].ToString() == "MainGrid") { // 在主页面下 MainGrid.Children.Add(treeview); } else { // 不在主页面下 string GridName = dr[2].ToString(); foreach (UIElement element in MainGrid.Children) { try { Grid mygrid = (Grid)element; if (mygrid.Name == dr[2].ToString()) { mygrid.Children.Add(treeview); break; } } catch { } } } } } } #endregion }
public override void AddToTab(TabPage tabPage) { AMFTreeView = new MyTreeView(); tabPage.Text = "AMF"; tabPage.Controls.Add(AMFTreeView); AMFTreeView.Dock = DockStyle.Fill; AMFTreeView.SetAMFDataParser(m_AMFDataParser); }
public bool hasCheckedNodes(MyTreeView tree) { bool has = false; for (int i = 0; i < tree.Nodes.Count && !has; i++) if (tree.Nodes[i].Checked) has = true; return has; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(YalfForm)); System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Node0"); this.btnDump = new System.Windows.Forms.Button(); this.btnClean = new System.Windows.Forms.Button(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.tbRegexHelp = new System.Windows.Forms.TextBox(); this.lblThreadList = new System.Windows.Forms.Label(); this.lstThreadList = new System.Windows.Forms.ListBox(); this.txtStatus = new System.Windows.Forms.TextBox(); this.txtLogContext = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.btnCsvDump = new System.Windows.Forms.Button(); this.txtCsvFolder = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.pnlMainOptions = new System.Windows.Forms.Panel(); this.label7 = new System.Windows.Forms.Label(); this.chkUseThreadGroupDisplay = new System.Windows.Forms.CheckBox(); this.chkShowRegExHelp = new System.Windows.Forms.CheckBox(); this.lblLastLogEntry = new System.Windows.Forms.Label(); this.lblFirstLogEntry = new System.Windows.Forms.Label(); this.txtTimeStampTo = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.txtTimeStampFrom = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.btnSaveFilters = new System.Windows.Forms.Button(); this.btnLoadFilters = new System.Windows.Forms.Button(); this.chkSingleLineFormat = new System.Windows.Forms.CheckBox(); this.chkHideMethodReturnValue = new System.Windows.Forms.CheckBox(); this.chkHodeMethodParameters = new System.Windows.Forms.CheckBox(); this.chkHideDuration = new System.Windows.Forms.CheckBox(); this.chkHideTimestamp = new System.Windows.Forms.CheckBox(); this.chkHideExitMethod = new System.Windows.Forms.CheckBox(); this.chkHideEnterMethod = new System.Windows.Forms.CheckBox(); this.btnApplyFilters = new System.Windows.Forms.Button(); this.ExcludedKeyList = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.IncludedKeyList = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.btnLoad = new System.Windows.Forms.Button(); this.btnSave = new System.Windows.Forms.Button(); this.chkIgnoreCase = new System.Windows.Forms.CheckBox(); this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); this.saveSettingsFileDialog = new System.Windows.Forms.SaveFileDialog(); this.openSettingsFileDialog = new System.Windows.Forms.OpenFileDialog(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.tvFilter = new YalfPerver.MyTreeView(); this.consoleOutput = new YalfPerver.ConsoleOutput(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.pnlMainOptions.SuspendLayout(); this.SuspendLayout(); // // btnDump // this.btnDump.Location = new System.Drawing.Point(12, 8); this.btnDump.Name = "btnDump"; this.btnDump.Size = new System.Drawing.Size(41, 23); this.btnDump.TabIndex = 0; this.btnDump.Text = "dump"; this.btnDump.UseVisualStyleBackColor = true; this.btnDump.Click += new System.EventHandler(this.btnDump_Click); // // btnClean // this.btnClean.Location = new System.Drawing.Point(55, 8); this.btnClean.Name = "btnClean"; this.btnClean.Size = new System.Drawing.Size(41, 23); this.btnClean.TabIndex = 1; this.btnClean.Text = "clean"; this.btnClean.UseVisualStyleBackColor = true; this.btnClean.Click += new System.EventHandler(this.btnClean_Click); // // splitContainer1 // this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; this.splitContainer1.Location = new System.Drawing.Point(0, 12); this.splitContainer1.MinimumSize = new System.Drawing.Size(600, 400); this.splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.tbRegexHelp); this.splitContainer1.Panel1.Controls.Add(this.tvFilter); this.splitContainer1.Panel1.Controls.Add(this.lblThreadList); this.splitContainer1.Panel1.Controls.Add(this.lstThreadList); this.splitContainer1.Panel1.Controls.Add(this.txtStatus); this.splitContainer1.Panel1.Controls.Add(this.txtLogContext); this.splitContainer1.Panel1.Controls.Add(this.label4); this.splitContainer1.Panel1.Controls.Add(this.btnCsvDump); this.splitContainer1.Panel1.Controls.Add(this.txtCsvFolder); this.splitContainer1.Panel1.Controls.Add(this.label3); this.splitContainer1.Panel1.Controls.Add(this.pnlMainOptions); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.consoleOutput); this.splitContainer1.Size = new System.Drawing.Size(1370, 738); this.splitContainer1.SplitterDistance = 686; this.splitContainer1.TabIndex = 3; // // tbRegexHelp // this.tbRegexHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbRegexHelp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tbRegexHelp.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbRegexHelp.Location = new System.Drawing.Point(3, 491); this.tbRegexHelp.Multiline = true; this.tbRegexHelp.Name = "tbRegexHelp"; this.tbRegexHelp.ReadOnly = true; this.tbRegexHelp.Size = new System.Drawing.Size(676, 240); this.tbRegexHelp.TabIndex = 12; this.tbRegexHelp.Text = resources.GetString("tbRegexHelp.Text"); this.tbRegexHelp.WordWrap = false; // // lblThreadList // this.lblThreadList.AutoSize = true; this.lblThreadList.Location = new System.Drawing.Point(363, 3); this.lblThreadList.Name = "lblThreadList"; this.lblThreadList.Size = new System.Drawing.Size(46, 13); this.lblThreadList.TabIndex = 29; this.lblThreadList.Text = "Threads"; // // lstThreadList // this.lstThreadList.FormattingEnabled = true; this.lstThreadList.IntegralHeight = false; this.lstThreadList.Location = new System.Drawing.Point(366, 19); this.lstThreadList.Name = "lstThreadList"; this.lstThreadList.Size = new System.Drawing.Size(313, 108); this.lstThreadList.TabIndex = 21; this.lstThreadList.SelectedIndexChanged += new System.EventHandler(this.lstThreadList_SelectedIndexChanged); // // txtStatus // this.txtStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.txtStatus.BackColor = System.Drawing.SystemColors.ControlDark; this.txtStatus.Font = new System.Drawing.Font("Consolas", 8F); this.txtStatus.ForeColor = System.Drawing.SystemColors.ControlLight; this.txtStatus.Location = new System.Drawing.Point(3, 517); this.txtStatus.Multiline = true; this.txtStatus.Name = "txtStatus"; this.txtStatus.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.txtStatus.Size = new System.Drawing.Size(356, 0); this.txtStatus.TabIndex = 20; // // txtLogContext // this.txtLogContext.Location = new System.Drawing.Point(69, 465); this.txtLogContext.Name = "txtLogContext"; this.txtLogContext.Size = new System.Drawing.Size(210, 20); this.txtLogContext.TabIndex = 19; this.txtLogContext.Text = "YalfDump"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(0, 468); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(64, 13); this.label4.TabIndex = 18; this.label4.Text = "Log Context"; // // btnCsvDump // this.btnCsvDump.Location = new System.Drawing.Point(285, 488); this.btnCsvDump.Name = "btnCsvDump"; this.btnCsvDump.Size = new System.Drawing.Size(75, 23); this.btnCsvDump.TabIndex = 17; this.btnCsvDump.Text = "Create [F12]"; this.btnCsvDump.UseVisualStyleBackColor = true; this.btnCsvDump.Click += new System.EventHandler(this.btnCsvDump_Click); // // txtCsvFolder // this.txtCsvFolder.Location = new System.Drawing.Point(69, 491); this.txtCsvFolder.Name = "txtCsvFolder"; this.txtCsvFolder.Size = new System.Drawing.Size(210, 20); this.txtCsvFolder.TabIndex = 14; this.txtCsvFolder.Text = "C:\\Temp"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(0, 494); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(61, 13); this.label3.TabIndex = 13; this.label3.Text = "Save folder"; // // pnlMainOptions // this.pnlMainOptions.Controls.Add(this.label7); this.pnlMainOptions.Controls.Add(this.chkUseThreadGroupDisplay); this.pnlMainOptions.Controls.Add(this.chkShowRegExHelp); this.pnlMainOptions.Controls.Add(this.lblLastLogEntry); this.pnlMainOptions.Controls.Add(this.lblFirstLogEntry); this.pnlMainOptions.Controls.Add(this.txtTimeStampTo); this.pnlMainOptions.Controls.Add(this.label6); this.pnlMainOptions.Controls.Add(this.txtTimeStampFrom); this.pnlMainOptions.Controls.Add(this.label5); this.pnlMainOptions.Controls.Add(this.btnSaveFilters); this.pnlMainOptions.Controls.Add(this.btnLoadFilters); this.pnlMainOptions.Controls.Add(this.chkSingleLineFormat); this.pnlMainOptions.Controls.Add(this.chkHideMethodReturnValue); this.pnlMainOptions.Controls.Add(this.chkHodeMethodParameters); this.pnlMainOptions.Controls.Add(this.chkHideDuration); this.pnlMainOptions.Controls.Add(this.chkHideTimestamp); this.pnlMainOptions.Controls.Add(this.chkHideExitMethod); this.pnlMainOptions.Controls.Add(this.chkHideEnterMethod); this.pnlMainOptions.Controls.Add(this.btnApplyFilters); this.pnlMainOptions.Controls.Add(this.ExcludedKeyList); this.pnlMainOptions.Controls.Add(this.label2); this.pnlMainOptions.Controls.Add(this.IncludedKeyList); this.pnlMainOptions.Controls.Add(this.label1); this.pnlMainOptions.Controls.Add(this.btnLoad); this.pnlMainOptions.Controls.Add(this.btnSave); this.pnlMainOptions.Controls.Add(this.btnDump); this.pnlMainOptions.Controls.Add(this.btnClean); this.pnlMainOptions.Controls.Add(this.chkIgnoreCase); this.pnlMainOptions.Location = new System.Drawing.Point(3, 3); this.pnlMainOptions.MinimumSize = new System.Drawing.Size(212, 47); this.pnlMainOptions.Name = "pnlMainOptions"; this.pnlMainOptions.Size = new System.Drawing.Size(362, 457); this.pnlMainOptions.TabIndex = 0; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(7, 156); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(74, 13); this.label7.TabIndex = 28; this.label7.Text = "&Included Keys"; // // chkUseThreadGroupDisplay // this.chkUseThreadGroupDisplay.AutoSize = true; this.chkUseThreadGroupDisplay.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkUseThreadGroupDisplay.Location = new System.Drawing.Point(168, 430); this.chkUseThreadGroupDisplay.Name = "chkUseThreadGroupDisplay"; this.chkUseThreadGroupDisplay.Size = new System.Drawing.Size(106, 17); this.chkUseThreadGroupDisplay.TabIndex = 27; this.chkUseThreadGroupDisplay.Text = "&Group by Thread"; this.toolTip1.SetToolTip(this.chkUseThreadGroupDisplay, "Gorup logs by thread. A Thread selection window is displayed when this option is" + " chosen"); this.chkUseThreadGroupDisplay.UseVisualStyleBackColor = true; this.chkUseThreadGroupDisplay.CheckedChanged += new System.EventHandler(this.chkUseThreadGroupDisplay_CheckedChanged); // // chkShowRegExHelp // this.chkShowRegExHelp.AutoSize = true; this.chkShowRegExHelp.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkShowRegExHelp.Checked = true; this.chkShowRegExHelp.CheckState = System.Windows.Forms.CheckState.Checked; this.chkShowRegExHelp.Location = new System.Drawing.Point(153, 155); this.chkShowRegExHelp.Name = "chkShowRegExHelp"; this.chkShowRegExHelp.Size = new System.Drawing.Size(113, 17); this.chkShowRegExHelp.TabIndex = 26; this.chkShowRegExHelp.Text = "Show RegEx &Help"; this.toolTip1.SetToolTip(this.chkShowRegExHelp, "Turn RegEx help on or off. Turn off to regain more screen real estate."); this.chkShowRegExHelp.UseVisualStyleBackColor = true; this.chkShowRegExHelp.CheckedChanged += new System.EventHandler(this.chkShowRegExHelp_CheckedChanged); // // lblLastLogEntry // this.lblLastLogEntry.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblLastLogEntry.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblLastLogEntry.ForeColor = System.Drawing.SystemColors.MenuHighlight; this.lblLastLogEntry.Location = new System.Drawing.Point(235, 127); this.lblLastLogEntry.Name = "lblLastLogEntry"; this.lblLastLogEntry.Size = new System.Drawing.Size(121, 13); this.lblLastLogEntry.TabIndex = 25; this.lblLastLogEntry.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblFirstLogEntry // this.lblFirstLogEntry.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblFirstLogEntry.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblFirstLogEntry.ForeColor = System.Drawing.SystemColors.MenuHighlight; this.lblFirstLogEntry.Location = new System.Drawing.Point(83, 127); this.lblFirstLogEntry.Name = "lblFirstLogEntry"; this.lblFirstLogEntry.Size = new System.Drawing.Size(121, 13); this.lblFirstLogEntry.TabIndex = 24; this.lblFirstLogEntry.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // txtTimeStampTo // this.txtTimeStampTo.Location = new System.Drawing.Point(235, 106); this.txtTimeStampTo.Name = "txtTimeStampTo"; this.txtTimeStampTo.Size = new System.Drawing.Size(121, 20); this.txtTimeStampTo.TabIndex = 23; this.toolTip1.SetToolTip(this.txtTimeStampTo, "Enter time in hh:mm:ss.fff format or leave blank for all"); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(207, 107); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(25, 13); this.label6.TabIndex = 22; this.label6.Text = "and"; // // txtTimeStampFrom // this.txtTimeStampFrom.Location = new System.Drawing.Point(83, 106); this.txtTimeStampFrom.Name = "txtTimeStampFrom"; this.txtTimeStampFrom.Size = new System.Drawing.Size(121, 20); this.txtTimeStampFrom.TabIndex = 21; this.toolTip1.SetToolTip(this.txtTimeStampFrom, "Enter time in hh:mm:ss.fff format or leave blank for all"); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(3, 109); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(79, 13); this.label5.TabIndex = 20; this.label5.Text = "Times between"; // // btnSaveFilters // this.btnSaveFilters.Location = new System.Drawing.Point(86, 381); this.btnSaveFilters.Name = "btnSaveFilters"; this.btnSaveFilters.Size = new System.Drawing.Size(75, 23); this.btnSaveFilters.TabIndex = 18; this.btnSaveFilters.Text = "Save Filters"; this.btnSaveFilters.UseVisualStyleBackColor = true; this.btnSaveFilters.Click += new System.EventHandler(this.btnSaveFilters_Click); // // btnLoadFilters // this.btnLoadFilters.Location = new System.Drawing.Point(5, 381); this.btnLoadFilters.Name = "btnLoadFilters"; this.btnLoadFilters.Size = new System.Drawing.Size(75, 23); this.btnLoadFilters.TabIndex = 17; this.btnLoadFilters.Text = "Load Filters"; this.btnLoadFilters.UseVisualStyleBackColor = true; this.btnLoadFilters.Click += new System.EventHandler(this.btnLoadFilters_Click); // // chkSingleLineFormat // this.chkSingleLineFormat.AutoSize = true; this.chkSingleLineFormat.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkSingleLineFormat.Location = new System.Drawing.Point(47, 430); this.chkSingleLineFormat.Name = "chkSingleLineFormat"; this.chkSingleLineFormat.Size = new System.Drawing.Size(113, 17); this.chkSingleLineFormat.TabIndex = 16; this.chkSingleLineFormat.Text = "&Single Line Format"; this.chkSingleLineFormat.UseVisualStyleBackColor = true; this.chkSingleLineFormat.CheckedChanged += new System.EventHandler(this.chkSingleLineFormat_CheckedChanged); // // chkHideMethodReturnValue // this.chkHideMethodReturnValue.AutoSize = true; this.chkHideMethodReturnValue.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkHideMethodReturnValue.Checked = true; this.chkHideMethodReturnValue.CheckState = System.Windows.Forms.CheckState.Checked; this.chkHideMethodReturnValue.Location = new System.Drawing.Point(173, 60); this.chkHideMethodReturnValue.Name = "chkHideMethodReturnValue"; this.chkHideMethodReturnValue.Size = new System.Drawing.Size(145, 17); this.chkHideMethodReturnValue.TabIndex = 7; this.chkHideMethodReturnValue.Text = "Hide method return &value"; this.chkHideMethodReturnValue.UseVisualStyleBackColor = true; // // chkHodeMethodParameters // this.chkHodeMethodParameters.AutoSize = true; this.chkHodeMethodParameters.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkHodeMethodParameters.Checked = true; this.chkHodeMethodParameters.CheckState = System.Windows.Forms.CheckState.Checked; this.chkHodeMethodParameters.Location = new System.Drawing.Point(9, 60); this.chkHodeMethodParameters.Name = "chkHodeMethodParameters"; this.chkHodeMethodParameters.Size = new System.Drawing.Size(141, 17); this.chkHodeMethodParameters.TabIndex = 6; this.chkHodeMethodParameters.Text = "Hide method ¶meters"; this.chkHodeMethodParameters.UseVisualStyleBackColor = true; // // chkHideDuration // this.chkHideDuration.AutoSize = true; this.chkHideDuration.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkHideDuration.Checked = true; this.chkHideDuration.CheckState = System.Windows.Forms.CheckState.Checked; this.chkHideDuration.Location = new System.Drawing.Point(59, 82); this.chkHideDuration.Name = "chkHideDuration"; this.chkHideDuration.Size = new System.Drawing.Size(91, 17); this.chkHideDuration.TabIndex = 8; this.chkHideDuration.Text = "Hide &Duration"; this.chkHideDuration.UseVisualStyleBackColor = true; // // chkHideTimestamp // this.chkHideTimestamp.AutoSize = true; this.chkHideTimestamp.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkHideTimestamp.Checked = true; this.chkHideTimestamp.CheckState = System.Windows.Forms.CheckState.Checked; this.chkHideTimestamp.Location = new System.Drawing.Point(216, 82); this.chkHideTimestamp.Name = "chkHideTimestamp"; this.chkHideTimestamp.Size = new System.Drawing.Size(102, 17); this.chkHideTimestamp.TabIndex = 9; this.chkHideTimestamp.Text = "Hide &Timestamp"; this.chkHideTimestamp.UseVisualStyleBackColor = true; // // chkHideExitMethod // this.chkHideExitMethod.AutoSize = true; this.chkHideExitMethod.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkHideExitMethod.Checked = true; this.chkHideExitMethod.CheckState = System.Windows.Forms.CheckState.Checked; this.chkHideExitMethod.Location = new System.Drawing.Point(212, 40); this.chkHideExitMethod.Name = "chkHideExitMethod"; this.chkHideExitMethod.Size = new System.Drawing.Size(106, 17); this.chkHideExitMethod.TabIndex = 5; this.chkHideExitMethod.Text = "Hide E&xit method"; this.chkHideExitMethod.UseVisualStyleBackColor = true; // // chkHideEnterMethod // this.chkHideEnterMethod.AutoSize = true; this.chkHideEnterMethod.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkHideEnterMethod.Location = new System.Drawing.Point(36, 40); this.chkHideEnterMethod.Name = "chkHideEnterMethod"; this.chkHideEnterMethod.Size = new System.Drawing.Size(114, 17); this.chkHideEnterMethod.TabIndex = 4; this.chkHideEnterMethod.Text = "Hide &Enter method"; this.chkHideEnterMethod.UseVisualStyleBackColor = true; // // btnApplyFilters // this.btnApplyFilters.Location = new System.Drawing.Point(282, 426); this.btnApplyFilters.Name = "btnApplyFilters"; this.btnApplyFilters.Size = new System.Drawing.Size(75, 23); this.btnApplyFilters.TabIndex = 15; this.btnApplyFilters.Text = "&Apply [F5]"; this.btnApplyFilters.UseVisualStyleBackColor = true; this.btnApplyFilters.Click += new System.EventHandler(this.btnApplyFilters_Click); // // ExcludedKeyList // this.ExcludedKeyList.Location = new System.Drawing.Point(5, 285); this.ExcludedKeyList.Multiline = true; this.ExcludedKeyList.Name = "ExcludedKeyList"; this.ExcludedKeyList.Size = new System.Drawing.Size(352, 92); this.ExcludedKeyList.TabIndex = 13; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(3, 263); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(77, 13); this.label2.TabIndex = 12; this.label2.Text = "Excluded &Keys"; // // IncludedKeyList // this.IncludedKeyList.Location = new System.Drawing.Point(5, 172); this.IncludedKeyList.Multiline = true; this.IncludedKeyList.Name = "IncludedKeyList"; this.IncludedKeyList.Size = new System.Drawing.Size(352, 92); this.IncludedKeyList.TabIndex = 11; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(3, 172); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(140, 13); this.label1.TabIndex = 10; this.label1.Text = "&Include Keys (executed first)"; // // btnLoad // this.btnLoad.Location = new System.Drawing.Point(142, 8); this.btnLoad.Name = "btnLoad"; this.btnLoad.Size = new System.Drawing.Size(42, 23); this.btnLoad.TabIndex = 3; this.btnLoad.Text = "load"; this.btnLoad.UseVisualStyleBackColor = true; this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click); // // btnSave // this.btnSave.Location = new System.Drawing.Point(98, 8); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(42, 23); this.btnSave.TabIndex = 2; this.btnSave.Text = "save"; this.btnSave.UseVisualStyleBackColor = true; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // chkIgnoreCase // this.chkIgnoreCase.AutoSize = true; this.chkIgnoreCase.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkIgnoreCase.Location = new System.Drawing.Point(274, 155); this.chkIgnoreCase.Name = "chkIgnoreCase"; this.chkIgnoreCase.Size = new System.Drawing.Size(83, 17); this.chkIgnoreCase.TabIndex = 14; this.chkIgnoreCase.Text = "Ignore &Case"; this.chkIgnoreCase.UseVisualStyleBackColor = true; // // saveFileDialog // this.saveFileDialog.DefaultExt = "ylf"; this.saveFileDialog.FileName = "dump"; this.saveFileDialog.Filter = "Yalf dump files (*.ylf)|*.ylf"; // // openFileDialog // this.openFileDialog.DefaultExt = "ylf"; this.openFileDialog.Filter = "Yalf dump files (*.yalf, *.ylf)|*.yalf;*.ylf|(All Files *.*)|*.*"; // // saveSettingsFileDialog // this.saveSettingsFileDialog.DefaultExt = "yfc"; this.saveSettingsFileDialog.FileName = "yalfFilters.yfc"; this.saveSettingsFileDialog.Filter = "Yalf filter config files (*.yfc)|*.yfc|(All Files *.*)|*.*"; this.saveSettingsFileDialog.Title = "Save Yalf Config"; // // openSettingsFileDialog // this.openSettingsFileDialog.DefaultExt = "yfc"; this.openSettingsFileDialog.FileName = "yalfFilters.yfc"; this.openSettingsFileDialog.Filter = "Yalf filter config files (*.yfc)|*.yfc|(All Files *.*)|*.*"; this.openSettingsFileDialog.Title = "Load Yalf Config"; // // tvFilter // this.tvFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.tvFilter.BorderStyle = System.Windows.Forms.BorderStyle.None; this.tvFilter.CheckBoxes = true; this.tvFilter.Location = new System.Drawing.Point(366, 136); this.tvFilter.Name = "tvFilter"; treeNode1.Checked = true; treeNode1.Name = "Node0"; treeNode1.Text = "Node0"; this.tvFilter.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { treeNode1}); this.tvFilter.Size = new System.Drawing.Size(313, 343); this.tvFilter.TabIndex = 4; this.tvFilter.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.tvFilter_AfterCheck); this.tvFilter.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tvFilter_KeyDown); // // consoleOutput // this.consoleOutput.Dock = System.Windows.Forms.DockStyle.Fill; this.consoleOutput.Location = new System.Drawing.Point(0, 0); this.consoleOutput.Name = "consoleOutput"; this.consoleOutput.Size = new System.Drawing.Size(676, 734); this.consoleOutput.TabIndex = 0; // // YalfForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1370, 750); this.Controls.Add(this.splitContainer1); this.KeyPreview = true; this.Name = "YalfForm"; this.Text = "Yalf dump"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.YalfForm_Load); this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.YalfForm_KeyUp); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel1.PerformLayout(); this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); this.pnlMainOptions.ResumeLayout(false); this.pnlMainOptions.PerformLayout(); this.ResumeLayout(false); }
private void Button_Click(object sender, RoutedEventArgs e) { MyTreeView.Items.Refresh(); MyTreeView.UpdateLayout(); }
//Обработчик кнопк "Раскрыть все" protected void ExpandBtn_Click(object sendr, EventArgs e) { MyTreeView.ExpandAll(); }
public void FilterTree(Predicate <MyTreeViewItem> itemFilter) { MyTreeView.FilterTree(this, itemFilter); }
//解析副窗体 public static void Parse_SubWindow(UserControl subwindow, SQL_Connect_Builder sql_builder, Grid MainGrid, Running_Data data) { // 解析所有的Grid #region string where_cmd = "ParentWindow='" + subwindow.Name + "'"; DataTable allgriddt = sql_builder.Select_Table("ALLGrid", where_cmd); if (allgriddt != null) { if (allgriddt.Rows.Count > 0) { foreach (DataRow dr in allgriddt.Rows) { Grid grid = new Grid(); // 水平对齐 if (dr[3].ToString() == "Left") { grid.HorizontalAlignment = HorizontalAlignment.Left; } if (dr[3].ToString() == "Center") { grid.HorizontalAlignment = HorizontalAlignment.Center; } if (dr[3].ToString() == "Right") { grid.HorizontalAlignment = HorizontalAlignment.Right; } if (dr[3].ToString() == "Stretch") { grid.HorizontalAlignment = HorizontalAlignment.Stretch; } // 垂直对齐 if (dr[4].ToString() == "Bottom") { grid.VerticalAlignment = VerticalAlignment.Bottom; } if (dr[4].ToString() == "Center") { grid.VerticalAlignment = VerticalAlignment.Center; } if (dr[4].ToString() == "Stretch") { grid.VerticalAlignment = VerticalAlignment.Stretch; } if (dr[4].ToString() == "Top") { grid.VerticalAlignment = VerticalAlignment.Top; } int marginLeft = int.Parse(dr[5].ToString()); int marginRight = int.Parse(dr[6].ToString()); int marginTop = int.Parse(dr[7].ToString()); int marginBottom = int.Parse(dr[8].ToString()); grid.Margin = new Thickness(marginLeft, marginTop, marginRight, marginBottom); grid.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(dr[9].ToString())); grid.Name = dr[0].ToString(); if (dr[10].ToString() != "") { grid.Width = double.Parse(dr[10].ToString()); } if (dr[11].ToString() != "") { grid.Height = double.Parse(dr[11].ToString()); } if (dr[2].ToString() == "MainGrid") { // 在主页面下 MainGrid.Children.Add(grid); } else { // 不在主页面下 string GridName = dr[2].ToString(); foreach (UIElement element in MainGrid.Children) { try { Grid mygrid = (Grid)element; if (mygrid.Name == dr[2].ToString()) { mygrid.Children.Add(grid); } } catch { } } } } } } #endregion // 解析所有的MyTreeView #region where_cmd = "ParentWindow='" + subwindow.Name + "'"; DataTable allMyTreeView = sql_builder.Select_Table("ALLMyTreeView", where_cmd); if (allMyTreeView != null) { if (allMyTreeView.Rows.Count > 0) { foreach (DataRow dr in allMyTreeView.Rows) { DataTable TreeViewItemsdt = sql_builder.Select_Table(dr[0].ToString()); MyTreeView treeview = new MyTreeView(TreeViewItemsdt); treeview.Name = dr[0].ToString(); if (dr[3].ToString() == "Left") { treeview.HorizontalAlignment = HorizontalAlignment.Left; } if (dr[3].ToString() == "Center") { treeview.HorizontalAlignment = HorizontalAlignment.Center; } if (dr[3].ToString() == "Right") { treeview.HorizontalAlignment = HorizontalAlignment.Right; } if (dr[3].ToString() == "Stretch") { treeview.HorizontalAlignment = HorizontalAlignment.Stretch; } // 垂直对齐 if (dr[4].ToString() == "Bottom") { treeview.VerticalAlignment = VerticalAlignment.Bottom; } if (dr[4].ToString() == "Center") { treeview.VerticalAlignment = VerticalAlignment.Center; } if (dr[4].ToString() == "Stretch") { treeview.VerticalAlignment = VerticalAlignment.Stretch; } if (dr[4].ToString() == "Top") { treeview.VerticalAlignment = VerticalAlignment.Top; } int marginLeft = int.Parse(dr[5].ToString()); int marginRight = int.Parse(dr[6].ToString()); int marginTop = int.Parse(dr[7].ToString()); int marginBottom = int.Parse(dr[8].ToString()); treeview.Margin = new Thickness(marginLeft, marginTop, marginRight, marginBottom); treeview.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(dr[9].ToString())); treeview.Name = dr[0].ToString(); if (dr[10].ToString() != "") { treeview.Width = double.Parse(dr[10].ToString()); } if (dr[11].ToString() != "") { treeview.Height = double.Parse(dr[11].ToString()); } if (dr[2].ToString() == "MainGrid") { // 在主页面下 MainGrid.Children.Add(treeview); } else { // 不在主页面下 string GridName = dr[2].ToString(); foreach (UIElement element in MainGrid.Children) { try { Grid mygrid = (Grid)element; if (mygrid.Name == dr[2].ToString()) { mygrid.Children.Add(treeview); break; } } catch { } } } } } } #endregion // 解析所有的MyLabel #region DataTable AllMyLabeldt = sql_builder.Select_Table("AllMyLabel", where_cmd); if (AllMyLabeldt != null) { if (AllMyLabeldt.Rows.Count > 0) { foreach (DataRow dr in AllMyLabeldt.Rows) { MyLabel mylabel = new MyLabel(dr, sql_builder, data); if (dr[2].ToString() == "MainGrid") { // 在主页面下 MainGrid.Children.Add(mylabel); } else { // 不在主页面下 string GridName = dr[2].ToString(); foreach (UIElement element in MainGrid.Children) { try { Grid mygrid = (Grid)element; if (mygrid.Name == dr[2].ToString()) { mygrid.Children.Add(mylabel); } } catch { } } } } } } #endregion // 解析所有的MyChart #region DataTable AllMyChart = sql_builder.Select_Table("ALLMyChart", where_cmd); if (AllMyChart != null) { if (AllMyChart.Rows.Count > 0) { foreach (DataRow dr in AllMyChart.Rows) { MyChart mychart = new MyChart(dr, sql_builder); if (dr[2].ToString() == "MainGrid") { // 在主页面下 MainGrid.Children.Add(mychart); } else { // 不在主页面下 string GridName = dr[2].ToString(); foreach (UIElement element in MainGrid.Children) { try { Grid mygrid = (Grid)element; if (mygrid.Name == dr[2].ToString()) { mygrid.Children.Add(mychart); } } catch { } } } } } } #endregion // 解析所有的MyDataGridView // 表格分种类 #region DataTable AllDataGridView = sql_builder.Select_Table("AllDataGrid", where_cmd); if (AllDataGridView != null) { if (AllDataGridView.Rows.Count > 0) { foreach (DataRow dr in AllDataGridView.Rows) { // 顺序表 if (dr[1].ToString() == "OrderTable") { // 读取表格 DataTable gongyibiao = sql_builder.Select_Table(dr[0].ToString()); if (gongyibiao == null) { return; } MyOrderDataGridView datagridview = new MyOrderDataGridView(gongyibiao, dr); if (dr[3].ToString() == "MainGrid") { // 在主页面下 MainGrid.Children.Add(datagridview); } else { // 不在主页面下 string GridName = dr[3].ToString(); foreach (UIElement element in MainGrid.Children) { try { Grid mygrid = (Grid)element; if (mygrid.Name == dr[2].ToString()) { mygrid.Children.Add(datagridview); } } catch { } } } } } } } #endregion }
public DocumentSwitcher (Gtk.Window parent, bool startWithNext) : base(Gtk.WindowType.Popup) { this.documents = new List<Document> (IdeApp.Workbench.Documents.OrderByDescending (d => d.LastTimeActive)); this.TransientFor = parent; this.CanFocus = true; this.Decorated = false; this.DestroyWithParent = true; //the following are specified using stetic, but documenting them here too //this.Modal = true; //this.WindowPosition = Gtk.WindowPosition.CenterOnParent; //this.TypeHint = WindowTypeHint.Menu; this.Build (); treeviewPads = new MyTreeView (); scrolledwindow1.Child = treeviewPads; treeviewDocuments = new MyTreeView (); scrolledwindow2.Child = treeviewDocuments; padListStore = new Gtk.ListStore (typeof (Gdk.Pixbuf), typeof (string), typeof (Pad)); treeviewPads.Model = padListStore; treeviewPads.AppendColumn ("icon", new Gtk.CellRendererPixbuf (), "pixbuf", 0); treeviewPads.AppendColumn ("text", new Gtk.CellRendererText (), "text", 1); treeviewPads.HeadersVisible = false; treeviewPads.Selection.Changed += TreeviewPadsSelectionChanged; documentListStore = new Gtk.ListStore (typeof (Gdk.Pixbuf), typeof (string), typeof (Document)); treeviewDocuments.Model = documentListStore; treeviewDocuments.AppendColumn ("icon", new Gtk.CellRendererPixbuf (), "pixbuf", 0); treeviewDocuments.AppendColumn ("text", new Gtk.CellRendererText (), "text", 1); treeviewDocuments.HeadersVisible = false; treeviewDocuments.Selection.Changed += TreeviewDocumentsSelectionChanged; FillLists (); this.labelFileName.Ellipsize = Pango.EllipsizeMode.Start; if (IdeApp.Workbench.ActiveDocument != null) { SwitchToDocument (); SelectDocument (startWithNext ? GetNextDocument (IdeApp.Workbench.ActiveDocument) : GetPrevDocument (IdeApp.Workbench.ActiveDocument)); } else { SwitchToPad (); } }
//Обработчик кнопки "Свернуть все" protected void CollapseBtn_Click(object sendr, EventArgs e) { MyTreeView.CollapseAll(); }