internal FilterView(IItem item, WorkspaceView parent) { _item = item; _parent = parent; _header = new MetroButton { AutoSize = true, Text = _item.Title, Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top }; Controls.Add(_header); }
internal void Run() { _explorer = new ProjectExplorerView(this); _workspace = new WorkspaceView("Main", this); _explorer.Show(); _workspace.Show(); FileName = LastFileNameFileHandle.String; if(FileName == null) OnOpen(); if(FileName == null) return; var t = new System.Timers.Timer(TimeSpan.FromSeconds(2).TotalMilliseconds) {AutoReset = true}; t.Elapsed += (s, e) => CheckForSave(); t.Enabled = true; EnsureDragDropController(); Application.Run(this); }