Esempio n. 1
0
        public static bool Check()
        {
            using (var actDia = new ActivationGui())
            {
                if (InitPlugin.Activated)
                {
                    return(InitPlugin.Activated);
                }

                if (InitPlugin.FirstRun)
                {
                    actDia.ShowDialog(new AcadMainWindow());
                    InitPlugin.FirstRun = false;
                }

                if (InitPlugin.Activated)
                {
                    return(true);
                }

                if (InitPlugin.HasTime)
                {
                    return(true);
                }

                Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(
                    "\nRabCab is not activated! Please enter an activation key to continue using the plugin!");
                return(false);
            }
        }
Esempio n. 2
0
        private void LabelActivate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var actDia = new ActivationGui();

            actDia.ShowDialog(new AcadMainWindow());
        }