Пример #1
0
        /// <summary>
        /// create c3ide project file
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ExportAddonButton_OnClick(object sender, RoutedEventArgs e)
        {
            if (AddonManager.CurrentAddon == null)
            {
                NotificationManager.PublishErrorNotification("error exporting c3addon, no c3addon selected");
                return;
            }

            ProcessHelper.Insatnce.StartProcess(AddonManager.ExportAddonProject());
        }
Пример #2
0
        /// <summary>
        /// exports the cuurently selected addon to c3ide project file
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ExportAddonProject_Click(object sender, RoutedEventArgs e)
        {
            if (AddonListBox.SelectedIndex == -1)
            {
                NotificationManager.PublishErrorNotification("error exporting c3addon, no c3addon selected");
                return;
            }

            var currentAddon = (C3Addon)AddonListBox.SelectedItem;

            AddonManager.LoadAddon(currentAddon);
            ProcessHelper.Insatnce.StartProcess(AddonManager.ExportAddonProject());
        }