Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            gallifrey = new Backend();
            try
            {
                gallifrey.Initialise();
            }
            catch (MissingJiraConfigException)
            {
                btnSettings_Click(null, null);
            }
            catch (JiraConnectionException)
            {
                btnSettings_Click(null, null);
            }

            gallifrey.NoActivityEvent  += GallifreyOnNoActivityEvent;
            SystemEvents.SessionSwitch += SessionSwitchHandler;
        }
        public MainWindow()
        {
            InitializeComponent();
            gallifrey = new Backend();
            try
            {
                gallifrey.Initialise();
            }
            catch (MissingJiraConfigException)
            {
                btnSettings_Click(null, null);
            }
            catch (JiraConnectionException)
            {
                btnSettings_Click(null, null);
            }

            gallifrey.NoActivityEvent += GallifreyOnNoActivityEvent;
            SystemEvents.SessionSwitch += SessionSwitchHandler;
        }
Beispiel #3
0
        public MainWindow(IBackend gallifreyBackend)
        {
            InitializeComponent();

            gallifrey = gallifreyBackend;

            ExceptionlessClient.Default.Configuration.ApiKey  = "e7ac6366507547639ce69fea261d6545";
            ExceptionlessClient.Default.Configuration.Enabled = true;
            ExceptionlessClient.Default.Configuration.DefaultTags.Add(gallifrey.VersionControl.VersionName.Replace("\n", " - "));
            ExceptionlessClient.Default.SubmittingEvent += OnSubmittingExceptionlessEvent;
            ExceptionlessClient.Default.Register();

            internalTimerList = new Dictionary <DateTime, ThreadedBindingList <JiraTimer> >();

            try
            {
                gallifrey.Initialise();
            }
            catch (MissingJiraConfigException)
            {
                ShowSettings(false);
            }
            catch (JiraConnectionException)
            {
                ShowSettings(false);
            }
            catch (MultipleGallifreyRunningException)
            {
                MessageBox.Show("You Can Only Have One Instance Of Gallifrey Running At A Time\nPlease Close The Other Instance", "Multiple Instances", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                CloseNotifyIcon();
                exitOnStart = true;
            }

            gallifrey.NoActivityEvent   += GallifreyOnNoActivityEvent;
            gallifrey.ExportPromptEvent += GallifreyOnExportPromptEvent;
            SystemEvents.SessionSwitch  += SessionSwitchHandler;
        }
Beispiel #4
0
        public MainWindow(IBackend gallifreyBackend)
        {
            InitializeComponent();

            gallifrey = gallifreyBackend;

            ExceptionlessClient.Default.Configuration.ApiKey = "e7ac6366507547639ce69fea261d6545";
            ExceptionlessClient.Default.Configuration.Enabled = true;
            ExceptionlessClient.Default.Configuration.DefaultTags.Add(gallifrey.VersionControl.VersionName.Replace("\n", " - "));
            ExceptionlessClient.Default.SubmittingEvent += OnSubmittingExceptionlessEvent;
            ExceptionlessClient.Default.Register();

            internalTimerList = new Dictionary<DateTime, ThreadedBindingList<JiraTimer>>();

            try
            {
                gallifrey.Initialise();
            }
            catch (MissingJiraConfigException)
            {
                ShowSettings(false);
            }
            catch (JiraConnectionException)
            {
                ShowSettings(false);
            }
            catch (MultipleGallifreyRunningException)
            {
                MessageBox.Show("You Can Only Have One Instance Of Gallifrey Running At A Time\nPlease Close The Other Instance", "Multiple Instances", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                CloseNotifyIcon();
                exitOnStart = true;
            }

            gallifrey.NoActivityEvent += GallifreyOnNoActivityEvent;
            gallifrey.ExportPromptEvent += GallifreyOnExportPromptEvent;
            SystemEvents.SessionSwitch += SessionSwitchHandler;
        }