Exemple #1
0
        public void OnClick(Window mainWindow, Instance instance)
        {
            using (new ProfileSection("Publish", this))
            {
                ProfileSection.Argument("mainWindow", mainWindow);
                ProfileSection.Argument("instance", instance);

                var modeText = GetMode(mainWindow);

                if (modeText == null || modeText == CancelOption)
                {
                    return;
                }

                var mode = ParseMode(modeText);
                MainWindowHelper.Publish(instance, mainWindow, mode);
            }
        }