Exemple #1
0
        static void Main()
        {
            if (!Support.SetLicense())
            {
                return;
            }

            StartupMessageBox startupMsgBox = new StartupMessageBox("CSAnnotationsLayersDemo");

            if (startupMsgBox.ShowStartUpDialog)
            {
                startupMsgBox.ShowDialog();
            }

            if (RasterSupport.IsLocked(RasterSupportType.Document))
            {
                MessageBox.Show(String.Format("{0} Support is locked!", RasterSupportType.Document.ToString()), "Warning");
                return;
            }

            Application.EnableVisualStyles();
            Application.DoEvents();

            Application.Run(new MainForm());
        }
Exemple #2
0
        public MainForm()
        {
            StartupMessageBox startupMsgBox = new StartupMessageBox("CSDicomAnnDemo");

            if (startupMsgBox.ShowStartUpDialog)
            {
                startupMsgBox.ShowDialog();
            }
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            InitClass();
        }