本文整理汇总了C#中AssemblyInfo.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# AssemblyInfo.Equals方法的具体用法?C# AssemblyInfo.Equals怎么用?C# AssemblyInfo.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AssemblyInfo
的用法示例。
在下文中一共展示了AssemblyInfo.Equals方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckServerVersions
/// <summary>
/// Set Version Number of notfiere on frontend label.
/// </summary>
private void CheckServerVersions()
{
if (this.InvokeRequired)
{
DelegateCheckServerVersions inv = new DelegateCheckServerVersions(this.CheckServerVersions);
this.Invoke(inv, new object[] { });
}
else
{
this.Cursor = Cursors.WaitCursor;
bool sameVersion = true;
IDictionary<string, string> result = CACHE.SharedCache.ServerNodeVersionSharedCache();
string notifyVersion = new AssemblyInfo().Version;
int number = 1;
foreach (var item in CACHE.SharedCache.Servers)
{
if(result.ContainsKey(item))
{
string name = string.Format("{0}. Server Name: {1}; Shared Cache Version: {2}",
number++,
item,
result[item]);
this.LbServerNodes.Items.Add(new Common.ComboBoxItem(name, 0));
if (!notifyVersion.Equals(result[item]))
{
sameVersion = false;
}
}
}
// sort all items
this.LbServerNodes.Sorted = true;
// only display OK / NOK in case we can connect to server
if (result.Count > 0)
{
if (sameVersion)
{
this.pictureBox1.Image = new Bitmap(Resource.OK);
}
else
{
this.pictureBox1.Image = new Bitmap(Resource.NOK);
}
//
this.LblMessage.Text = string.Empty;
}
else
{
System.Drawing.Size s = new Size(50,50);
this.pictureBox1.Image = new Bitmap(Resource.SanscastleDocLogo, s);
this.LblMessage.Text = "Could not find any Server - check your 'notify config'!";
}
this.Cursor = Cursors.Default;
}
}