void popPanel_ClosePopPanel(object sender, EventArgs e) { (sender as PopPanel).ClosePopPanel -= popPanel_ClosePopPanel; griPop.Children.Clear(); popPanel = null; CurrentStage = StageEnum.MainFace; }
/// <summary> /// zaker引导 /// </summary> private void OpenICEZaker() { appDesc.RemoteClick(); CurrentStage = StageEnum.DescFace; OrdersIntervial(1); popPanel = new PopPanel(); popPanel.ClosePopPanel += popPanel_ClosePopPanel; List<string> ListAddress = new List<string>(); var appDescPath = Directory.GetCurrentDirectory() + "\\AppDesc\\"; if (!Directory.Exists(appDescPath)) { MessageBox.Show("找不到文件夹 " + appDescPath); return; } string[] filePath = Directory.GetFiles(appDescPath); foreach (var item in filePath) { if (Utility.isImage(item)) { ListAddress.Add(item); } } popPanel.InitializeStack(ListAddress); griPop.Children.Add(popPanel); }