コード例 #1
0
 private void tsbModBrowserCkanRefresh_Click(object sender, EventArgs e)
 {
     updating = true;
     ModBrowserCkanController.RefreshCkanRepositories(() =>
     {
         ModBrowserCkanController.RefreshCkanArchive(cbModBrowserCkanRepository.SelectedItem as CkanRepository, true, () => { updating = false; });
     });
 }
コード例 #2
0
        /// <summary>
        /// Creates a new instance of the ucTranslationView class.
        /// </summary>
        public UcModBrowserCkan()
        {
            InitializeComponent();

            if (LicenseManager.UsageMode == LicenseUsageMode.Designtime || DesignMode)
            {
                return;
            }

            ModBrowserCkanController.Initialize(this);
        }
コード例 #3
0
        private void cbModBrowserCkanRepository_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (updating)
            {
                return;
            }

            var sel = cbModBrowserCkanRepository.SelectedItem as CkanRepository;

            tableLayoutPanel1.Visible = (sel == null);

            if (sel != null)
            {
                ModBrowserCkanController.RefreshCkanArchive(sel, firstStart);
            }

            firstStart = false;
        }
コード例 #4
0
 private void btnModBrowserCkanProcessChanges_Click(object sender, EventArgs e)
 {
     ModBrowserCkanController.ProcessChanges();
 }
コード例 #5
0
 private void ucModBrowserCKAN_Load(object sender, EventArgs e)
 {
     // do View related init here or in the PluginViewController.Initialize(...) methode.
     TreeViewAdvColumnHelper.ColumnsToTreeViewAdv(tvCkanRepositories, Columns);
     ModBrowserCkanController.RefreshCkanRepositories();
 }