Beispiel #1
0
        public Form1()
        {
            //Singleton Pattern to insure that have only one instance over application
            repository = ITIRepository.getInstance();

            InitializeComponent();

            this.bindData();
        }
Beispiel #2
0
        static void Main()
        {
            ITIRepository repository = ITIRepository.getInstance();


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (repository.CheckConnection())
            {
                Application.Run(new Form1());
            }
            else
            {
                string title   = "Error";
                string message = "Can't connect to service please check it!!!!!";
                MessageBox.Show(message, title);
            }
        }