Example #1
0
        public MainForm()
        {
            _descriptor2NodeMap = new Dictionary <BlogDescriptor, TreeNode>();
            _descriptor2ItemMap = new Dictionary <BlogDescriptor, ToolStripItem>();

            _blogListStoragePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Genetibase\CrossPoster\BlogList.xml");

            InitializeComponent();

            _blogList.AfterSelect += _blogList_AfterSelect;
            _blogList.GotFocus    += _blogList_FocusChanged;
            _blogList.LostFocus   += _blogList_FocusChanged;

            _wizard           = new AddBlogWizard();
            _wizard.Finished += _wizard_Finished;

            _blogListModel = new BlogListModel();

            _blogListModel.ItemAdded   += _blogListModel_BlogAdded;
            _blogListModel.ItemRemoved += _blogListModel_BlogRemoved;
            _blogListModel.ItemAdded   += _blogListModel_BlogCountChanged;
            _blogListModel.ItemRemoved += _blogListModel_BlogCountChanged;
        }
Example #2
0
        public MainForm()
        {
            _descriptor2NodeMap = new Dictionary<BlogDescriptor, TreeNode>();
            _descriptor2ItemMap = new Dictionary<BlogDescriptor, ToolStripItem>();

            _blogListStoragePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Genetibase\CrossPoster\BlogList.xml");

            InitializeComponent();

            _blogList.AfterSelect += _blogList_AfterSelect;
            _blogList.GotFocus += _blogList_FocusChanged;
            _blogList.LostFocus += _blogList_FocusChanged;

            _wizard = new AddBlogWizard();
            _wizard.Finished += _wizard_Finished;

            _blogListModel = new BlogListModel();

            _blogListModel.ItemAdded += _blogListModel_BlogAdded;
            _blogListModel.ItemRemoved += _blogListModel_BlogRemoved;
            _blogListModel.ItemAdded += _blogListModel_BlogCountChanged;
            _blogListModel.ItemRemoved += _blogListModel_BlogCountChanged;
        }