예제 #1
0
 void popPanel_ClosePopPanel(object sender, EventArgs e)
 {
     (sender as PopPanel).ClosePopPanel -= popPanel_ClosePopPanel;
     griPop.Children.Clear();
     popPanel = null;
     CurrentStage = StageEnum.MainFace;
 }
예제 #2
0
        /// <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);
        }