void InitUiView() { Elc.InitialElc(); // this.WindowState = FormWindowState.Maximized; ConstDefine.g_NodeLength = (int)(FORM_WIDTH * PANEL_RADIO) / (ConstDefine.g_WidthNum + 1) / 2; MAX_NODE_LENGTH = ConstDefine.g_NodeLength * 2; MIN_NODE_LENGTH = ConstDefine.g_NodeLength / 2; ////设置滚动条滚动的区域 //this.AutoScrollMinSize = new Size(ConstDefine.WIDTH + ConstDefine.BEGIN_X, ConstDefine.HEIGHT); SetMapView(); SetInfoShowView(); }
void InitUiView(string path) { Elc = new ElecMap(); Elc.InitialElc(path); this.WindowState = FormWindowState.Maximized; this.tableLayoutPanel1.ColumnStyles[0].Width = (int)FORM_WIDTH * (1 - PANEL_RADIO) / 2; this.tableLayoutPanel1.ColumnStyles[1].Width = (int)FORM_WIDTH * (PANEL_RADIO); this.tableLayoutPanel1.ColumnStyles[2].Width = (int)FORM_WIDTH * (1 - PANEL_RADIO) / 2; ConstDefine.g_NodeLength = (int)(FORM_WIDTH * PANEL_RADIO) / ConstDefine.g_WidthNum; MAX_NODE_LENGTH = ConstDefine.g_NodeLength * 3; MIN_NODE_LENGTH = ConstDefine.g_NodeLength * 2 / 3; ////设置滚动条滚动的区域 //this.AutoScrollMinSize = new Size(ConstDefine.WIDTH + ConstDefine.BEGIN_X, ConstDefine.HEIGHT); mapControl = new MapControl(Elc); rowComBox.SelectedIndex = 0; colComBox.SelectedIndex = 0; SetMapView(); }