本文整理汇总了C#中Contact.getLineAssociation方法的典型用法代码示例。如果您正苦于以下问题:C# Contact.getLineAssociation方法的具体用法?C# Contact.getLineAssociation怎么用?C# Contact.getLineAssociation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Contact
的用法示例。
在下文中一共展示了Contact.getLineAssociation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Monitor
public Monitor(Contact c )
{
try
{
timertick = Convert.ToDouble(ConfigurationSettings.AppSettings["TIMERTICK"]);
dataAccess = new DataAccess();
dt = dataAccess.GetOpenIssues();
shifts = dataAccess.getShifts();
foreach (Shift s in shifts)
{
s.Sessions = dataAccess.getSessions(s.ID);
}
lines = c.getLineAssociation();
lineInfoTable = dataAccess.getProductionLineInfo(lines);
lineStatus = new LineStatusCollection();
for (int i = 0; i < lineInfoTable.Rows.Count; i++)
{
lineStatus.Add(new LineStatus((String)lineInfoTable.Rows[i]["description"],
(int)lineInfoTable.Rows[i]["id"]));
}
appTimer = new System.Timers.Timer(10);
appTimer.Elapsed += new System.Timers.ElapsedEventHandler(appTimer_Elapsed);
appTimer.AutoReset = false;
InitializeComponent();
foreach (DepartmentAssociationInfo d in c.DepartmentAssociation)
{
if (d.IsAssociated == false)
LineStatsGrid.Columns[d.ID+2].Visibility = Visibility.Hidden;
}
appTimer.Start();
}
catch (SqlException s)
{
MessageBox.Show("DataBase Error ", "ERROR",
MessageBoxButton.OK, MessageBoxImage.Error);
Application.Current.Shutdown();
}
}