本文整理汇总了C#中View.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# View.Equals方法的具体用法?C# View.Equals怎么用?C# View.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类View
的用法示例。
在下文中一共展示了View.Equals方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PortDeregistered
public override void PortDeregistered(View.VPort port)
{
lock (this)
{
if (port.Equals(fitbitPort))
{
fitbitPort = null;
logger.Log("{0} removed fitbitUltra port {1}", this.ToString(), port.ToString());
if (logWindow != null)
logWindow.Invoke(new Action(delegate() { logWindow.ConsoleLog("removed port " + port.ToString()); }));
}
if (port.Equals(sensorPort))
{
sensorPort = null;
logger.Log("{0} removed switchbinary port {0}", this.ToString(), port.ToString());
if (logWindow != null)
logWindow.Invoke(new Action(delegate() { logWindow.ConsoleLog("removed port " + port.ToString()); }));
}
}
}
示例2: onClick
public override void onClick(View v)
{
if (v.Equals(outerInstance.mFilterLevelBtn))
{
// make image filter dialog
outerInstance.showSetFilterLevelMenu();
}
}
示例3: onClick
public virtual void onClick(View v)
{
if (v.Equals(mBtnSend))
{
File file = new File(SRC_PATH);
mFileSize = file.length();
Toast.makeTextuniquetempvar.show();
if (SenderServiceBound)
{
try
{
int trId = mSenderService.sendFile(SRC_PATH);
mTransactions.Add((long) trId);
currentTransId = trId;
}
catch (System.ArgumentException e)
{
Console.WriteLine(e.ToString());
Console.Write(e.StackTrace);
Toast.makeText(mCtxt, "IllegalArgumentException", Toast.LENGTH_SHORT).show();
}
}
}
else if (v.Equals(mBtnCancel))
{
if (mSenderService != null)
{
try
{
mSenderService.cancelFileTransfer((int) currentTransId);
mTransactions.RemoveAt(currentTransId);
}
catch (System.ArgumentException e)
{
Console.WriteLine(e.ToString());
Console.Write(e.StackTrace);
Toast.makeText(mCtxt, "IllegalArgumentException", Toast.LENGTH_SHORT).show();
}
}
else
{
Toast.makeText(mCtxt, "no binding to service", Toast.LENGTH_SHORT).show();
}
}
else if (v.Equals(mBtnCancelAll))
{
if (mSenderService != null)
{
mSenderService.cancelAllTransactions();
mTransactions.Clear();
}
else
{
Toast.makeText(mCtxt, "no binding to service", Toast.LENGTH_SHORT).show();
}
}
else if (v.Equals(mBtnConn))
{
if (mSenderService != null)
{
mSenderService.connect();
}
else
{
Toast.makeText(ApplicationContext, "Service not Bound", Toast.LENGTH_SHORT).show();
}
}
}