/// <summary>
/// 獲取時間過濾值
/// </summary>
/// <returns></returns>
public string GetChooseText()
{
while (true)
{
return QpConvert.ToString(this.cboTimeFilter.Text);
Thread.Sleep(1000);
}
}
public delegate string GetChooseTextHandler();
private string ThreadFunctionGetTimeFilter()
{
string timeFilter = null;
//auyeung獲取時間過濾值
GetChooseTextHandler handle=new GetChooseTextHandler(GetChooseText);
timeFilter=QpConvert.ToString( this.Invoke(handle));
return timeFilter;
}
/// 獲取時間過濾值
/// </summary>
/// <returns></returns>
public string GetChooseText()
{
while (true)
{
return QpConvert.ToString(this.cboTimeFilter.Text);
Thread.Sleep(1000);
}
}
public delegate string GetChooseTextHandler();
private string ThreadFunctionGetTimeFilter()
{
string timeFilter = null;
//auyeung獲取時間過濾值
GetChooseTextHandler handle=new GetChooseTextHandler(GetChooseText);
timeFilter=QpConvert.ToString( this.Invoke(handle));
return timeFilter;
}
#endregion
#region 網格任務列表
/// <summary>
/// 加載網格
/// </summary>
private void LoadGridView()
{
string timeFilter = ThreadFunctionGetTimeFilter();
MessageBox.Show(timeFilter);
}