Exemple #1
0
        public void openExcelView(TableExcelData data, string filePath)
        {
            var panel = new FrameExcelView();

            panel.refreshUIByTableExcelData(data);
            panel.setFilePath(filePath);

            var pw = new PopupWindow(panel);

            pw.ResizeMode = ResizeMode.CanResize;
            pw.Owner      = Window.GetWindow(this);
            pw.Title      = string.Format("查看配置表 -- {0}", filePath);
            pw.MinWidth   = 600;
            pw.MinHeight  = 400;
            if (pw.ShowDialog() == true)
            {
            }
        }
Exemple #2
0
        private static void openEditUI(TableExcelData data, string fullPath)
        {
            var panel = new FrameExcelView();

            panel.refreshUIByTableExcelData(data);
            panel.setFilePath(fullPath);

            var pw = new PopupWindow(panel);

            pw.ResizeMode            = ResizeMode.CanResize;
            pw.Title                 = string.Format("查看配置表 -- {0}", fullPath);
            pw.MinWidth              = 600;
            pw.MinHeight             = 400;
            pw.ShowInTaskbar         = true;
            pw.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            App app = new App();

            app.InitializeComponent();
            app.Run((Window)pw);
        }