public StatCollectorCtrl(MainWindow win, string nIn, int mInt)
 {
     pWin = win;
     mSelectedInterface = nIn;
     mUpadateInterval   = mInt;
     sCol          = new StatCollector();
     isCtrlEnabled = true;
     if (true == setActiveInterface(mSelectedInterface))
     {
     }
 }
        public StatCollectorCtrl(MainWindow win, string nIn, int mInt)
        {
            pWin = win;
             mSelectedInterface = nIn;
             mUpadateInterval = mInt;
             sCol = new StatCollector();
             isCtrlEnabled = true;
             if (true == setActiveInterface(mSelectedInterface))
             {

             }
        }
        public MainWindow()
        {
            InitializeComponent();

             sCol = new StatCollector();

             // Init listview for expander
             InterfacesExpander.Content = lw;
             lw.SelectionChanged += lw_SelectionChanged;

             foreach (String conn in sCol.getActiveInterfaces())
             {
            lw.Items.Add(conn);
             }

             // Set delagate method
             UpdDelegate = new UpdateStat(UpdateStatMethod);

             // Init tray icon
             tbi = new TaskbarIcon();
             tbi.Icon = Properties.Resources.DefaultIcon;
             tbi.ToolTipText = "hello world";
        }
Esempio n. 4
0
        public MainWindow()
        {
            InitializeComponent();

            sCol = new StatCollector();

            // Init listview for expander
            InterfacesExpander.Content = lw;
            lw.SelectionChanged       += lw_SelectionChanged;

            foreach (String conn in sCol.getActiveInterfaces())
            {
                lw.Items.Add(conn);
            }

            // Set delagate method
            UpdDelegate = new UpdateStat(UpdateStatMethod);

            // Init tray icon
            tbi             = new TaskbarIcon();
            tbi.Icon        = Properties.Resources.DefaultIcon;
            tbi.ToolTipText = "hello world";
        }