コード例 #1
0
        public ActionResult Tab()
        {
            var tabs = new MyTabs();

            //I store the json string in a local json file
            using (StreamReader sr = new StreamReader(Server.MapPath("~/Content/tabs.json")))
            {
                tabs = JsonConvert.DeserializeObject <MyTabs>(sr.ReadToEnd());
            }
            return(View(tabs));
        }
コード例 #2
0
        private static void LayoutPanels()
        {
            InfoPanel.Width  = 360;
            LogPanel.Width   = 360;
            InfoPanel.Height = 132 * Project.CcdCount;
            LogPanel.Height  = Height - InfoPanel.Height - 15;

            DataPanel.Height = 260;
            DataPanel.Width  = Width - LogPanel.Width - 15;
            MainPanel.Height = Height - DataPanel.Height - 15;
            MainPanel.Width  = DataPanel.Width;

            MainPanel.Location = new Point(0, 0);
            DataPanel.Location = new Point(0, MainPanel.Bottom + 15);
            InfoPanel.Location = new Point(MainPanel.Right + 15, 0);
            LogPanel.Location  = new Point(DataPanel.Right + 15, InfoPanel.Bottom + 15);
            MyLog = new UiLogDialog(LogPanel);
            MyTabs.AddTabMain(MainPanel);
            MyTabs.AddTabData(DataPanel);

            MyZoneInfo = new UiZoneInfo(Project, InfoPanel);
        }