Example #1
0
        public static bool Run(IFavorite favorite, string defname)
        {
            var win = new AddToFavoriteForm();

            win.addToFavoritesFrame1.FavoriteName = defname;
            win.addToFavoritesFrame1.Favorite     = favorite;
            return(RunLoop(win, win.addToFavoritesFrame1, null));
        }
Example #2
0
        private void btnAddToFavorites_Click(object sender, EventArgs e)
        {
            var fav = new OpenDashboardFavorite
            {
                DashboardFile = Path.GetFileName(m_dashboard.AddonFileName),
                RelatedObject = m_appobj,
            };

            AddToFavoriteForm.Run(fav, m_appobj.ToString() + "-" + Path.GetFileNameWithoutExtension(fav.DashboardFile));
        }
Example #3
0
        public static bool Run(XmlDocument context, IVirtualFile file, QueryDesignFrame designFrame, string queryCode, bool selectedDesign)
        {
            var win = new AddQueryToFavoriteForm(context, file, designFrame, queryCode);

            if (selectedDesign && win.rbtDesign.Enabled)
            {
                win.rbtDesign.Checked = true;
            }
            return(AddToFavoriteForm.RunLoop(win, win.addToFavoritesFrame1, win.UpdateFavorite));
        }