mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +00:00
It's Tuesday morning and I don't know what I'm doing.
This commit is contained in:
@@ -394,7 +394,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
else if (c.Direction == eCodecCallDirection.Outgoing)
|
else if (c.Direction == eCodecCallDirection.Outgoing)
|
||||||
iconName = "Right";
|
iconName = "Right";
|
||||||
else
|
else
|
||||||
iconName = "Blank";
|
iconName = "Help";
|
||||||
RecentCallsList.SetItemIcon(i, iconName);
|
RecentCallsList.SetItemIcon(i, iconName);
|
||||||
|
|
||||||
var call = c; // for lambda scope
|
var call = c; // for lambda scope
|
||||||
@@ -440,34 +440,22 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
var codec = Codec as IHasDirectory;
|
var codec = Codec as IHasDirectory;
|
||||||
if (codec != null)
|
if (codec != null)
|
||||||
{
|
{
|
||||||
var dir = Codec as IHasDirectory;
|
if (codec != null)
|
||||||
if (dir != null)
|
|
||||||
{
|
{
|
||||||
DirectoryList = new SmartObjectDynamicList(TriList.SmartObjects[UISmartObjectJoin.VCDirectoryList],
|
DirectoryList = new SmartObjectDynamicList(TriList.SmartObjects[UISmartObjectJoin.VCDirectoryList],
|
||||||
true, 1300);
|
true, 1300);
|
||||||
dir.DirectoryResultReturned += new EventHandler<DirectoryEventArgs>(dir_DirectoryResultReturned);
|
codec.DirectoryResultReturned += new EventHandler<DirectoryEventArgs>(dir_DirectoryResultReturned);
|
||||||
CurrentDirectoryResult = dir.DirectoryRoot;
|
CurrentDirectoryResult = codec.DirectoryRoot;
|
||||||
|
|
||||||
if (CurrentDirectoryResult != null && dir.DirectoryRoot.DirectoryResults.Count > 0)
|
// If there is something here now, show it otherwise wait for the event
|
||||||
|
if (CurrentDirectoryResult != null && codec.DirectoryRoot.DirectoryResults.Count > 0)
|
||||||
{
|
{
|
||||||
// populate it
|
RefreshDirectory();
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// it will just show up??????
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
/////
|
|
||||||
///// </summary>
|
|
||||||
//void RefreshDirectory()
|
|
||||||
//{
|
|
||||||
// (Codec as IHasDirectory).GetDirectoryFolderContents(CurrentDirectoryResult.
|
|
||||||
//}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -476,6 +464,17 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
void dir_DirectoryResultReturned(object sender, DirectoryEventArgs e)
|
void dir_DirectoryResultReturned(object sender, DirectoryEventArgs e)
|
||||||
{
|
{
|
||||||
CurrentDirectoryResult = e.Directory;
|
CurrentDirectoryResult = e.Directory;
|
||||||
|
RefreshDirectory();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="dir"></param>
|
||||||
|
void RefreshDirectory()
|
||||||
|
{
|
||||||
|
Debug.Console(0, "****** RefreshDirectory!");
|
||||||
|
|
||||||
ushort i = 0;
|
ushort i = 0;
|
||||||
foreach (var r in CurrentDirectoryResult.DirectoryResults)
|
foreach (var r in CurrentDirectoryResult.DirectoryResults)
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user