Ejemplo n.º 1
0
        public SessionExplorer()
            : base()
        {
            SessionList = new List<TelnetSession>();
            ObjectTree.MouseDoubleClick += ObjectTree_MouseDoubleClick;

               // LoadSessionsFromTemplate();
            obj = this;
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            //TemplateFileHandler.GetTemplateFileHandler().GenetareDefaultTemplate();
            mainwindowobj = this;
            notifyIcon1 = new System.Windows.Forms.NotifyIcon();

            notifyIcon1.Icon = new Icon(@"..\..\Resources\Images\Application\Logo\logo.ico");

            notifyIcon1.ContextMenu = new System.Windows.Forms.ContextMenu();
            notifyIcon1.ContextMenu.MenuItems.Add("Exit", new System.EventHandler((object obj, System.EventArgs e) => { App.Current.Shutdown();  }));

            notifyIcon1.DoubleClick += NotifyIcon1_DoubleClick;
            InitializeComponent();

            m_sessionexporer = new SessionExplorer();
        }