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); } }
private void LabelActivate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var actDia = new ActivationGui(); actDia.ShowDialog(new AcadMainWindow()); }