Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     gViewer.ZoomFraction = .02; //zoom increment smaller for smooth scrolling..
     mnuPopup.MouseLeave += new EventHandler(mnuPopup_MouseLeave);
     graph = new CGraph(gViewer, lvNodes, this);
     lst.Width = lvNodes.Width;
     lvNodes.ContextMenuStrip = mnuLVPopup;
     lvNodes.Columns[0].Width = lvNodes.Width - 5;
     lvSorter = new ListViewColumnSorter();
     ListViewColumnSorter.SortTypes[] columns = {
             ListViewColumnSorter.SortTypes.stText,
     };
     lvSorter.columnSortType = columns;
     this.lvNodes.ListViewItemSorter = lvSorter;
 }
Exemplo n.º 2
0
 public Form1()
 {
     InitializeComponent();
     gViewer.ZoomFraction = .02; //zoom increment smaller for smooth scrolling..
     mnuPopup.MouseLeave += new EventHandler(mnuPopup_MouseLeave);
     graph     = new CGraph(gViewer, lvNodes, this);
     lst.Width = lvNodes.Width;
     lvNodes.ContextMenuStrip = mnuLVPopup;
     lvNodes.Columns[0].Width = lvNodes.Width - 5;
     lvSorter = new ListViewColumnSorter();
     ListViewColumnSorter.SortTypes[] columns =
     {
         ListViewColumnSorter.SortTypes.stText,
     };
     lvSorter.columnSortType         = columns;
     this.lvNodes.ListViewItemSorter = lvSorter;
 }