Example #1
0
        //private WebBrowser showwebpage;
        public Main()
        {
            InitializeComponent();

            //showwebpage = htmlTextBox1.Browser;
            Welcome welcomedlg = new Welcome();
            if (welcomedlg.ShowDialog() == DialogResult.OK)
            {
                Login logindlg = new Login();
                if (logindlg.ShowDialog() == DialogResult.OK)
                {
                    ///////添加登录日志
                }
                else
                {
                    this.Close();
                    //Application.Exit();
                    Environment.Exit(0);
                }
            }

            InfoSource info = new InfoSource();
            info.GetAllInfo();
            InitTreeView();
            InitTagsTree();
            //InitRssSource();
            //更新状态信息
            UpdateManager.UpdateEvent += new UpdateManager.UpdateStatuHandler(UpdateManager_UpdateEvent);

            UseUpdateConfig();
        }
Example #2
0
 private void toolStripButton6_Click(object sender, EventArgs e)
 {
     InfoSource info = new InfoSource();
     info.GetAllInfo();
     InitTreeView();
     InitTagsTree();
 }