本文整理汇总了C#中IBackend.Initialise方法的典型用法代码示例。如果您正苦于以下问题:C# IBackend.Initialise方法的具体用法?C# IBackend.Initialise怎么用?C# IBackend.Initialise使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IBackend
的用法示例。
在下文中一共展示了IBackend.Initialise方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MainWindow
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;
}
示例2: MainWindow
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;
}