private void vs_EnabledChanged(object sender, EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(vs, this.Name + "000_vs"); // txt1.Text=vs.Cols[txt1.Tag+""].Caption; // txt2.Text=vs.Cols[txt2.Tag+""].Caption; Set_LB(); nav.Init_PMenu_Color(); }
private void frmControlTable_Load(object sender, System.EventArgs e) { Func.Fun.ExecuteSQL("Delete from SYS_SQL_SELECT where [ID] not in(Select ID from SYS_SQL_FROM)", PublicFunction.C_con, true); nav2.cmd_search.Visible = false; nav2.cmd_report.Visible = false; nav2.cmd_copy.Visible = false; nav2.Grid = vs1; nav2.FormName = this.Name + "_vs1"; nav2.Connection = Function.PublicFunction.C_con; nav2.Init_Control(); nav2.ToolBar_Auto = false; nav2.form = this; nav1.cmd_search.Visible = false; nav1.cmd_report.Visible = false; nav1.cmd_copy.Visible = false; nav1.Grid = vs; nav1.FormName = this.Name + "_vs"; nav1.Connection = Function.PublicFunction.C_con; nav1.Init_Control(); nav1.Show_VS(); Show_VS1(); nav3.cmd_copy.Visible = false; nav3.cmd_report.Visible = false; nav3.cmd_search.Visible = false; nav3.Grid = vs2; nav3.FormName = this.Name + "_vs2"; nav3.Connection = Function.PublicFunction.C_con; nav3.Init_Control(); nav3.ToolBar_Auto = false; nav3.TBarClick += new ToolBarButtonClickEventHandler(nav3_TBarClick); vs2.AfterEdit += new C1.Win.C1FlexGrid.RowColEventHandler(vs2_AfterEdit); //PublicFunction.L_Init_Label(this); nav1.Init_PMenu_Color(); nav2.Init_PMenu_Color(); Init_Tree(); c1DockingTab1.SelectedIndex = 0; }
private void frmLabel_Load(object sender, System.EventArgs e) { nav1.cmd_search.Visible = false; nav1.cmd_report.Visible = false; nav1.Grid = vs1; nav1.FormName = this.Name + "_vs1"; nav1.Connection = PublicFunction.C_con; nav1.Init_Control(); nav1.Init_PMenu_Color(); nav1.Show_VS(); nav2.cmd_search.Visible = false; nav2.cmd_report.Visible = false; nav2.Grid = vs2; nav2.FormName = this.Name + "_vs2"; nav2.Connection = PublicFunction.C_con; nav2.Init_Control(); nav2.Init_PMenu_Color(); nav2.Show_VS(LB); nav3.cmd_search.Visible = false; nav3.cmd_report.Visible = false; nav3.Grid = vs3; nav3.FormName = this.Name + "_vs3"; nav3.Connection = PublicFunction.C_con; nav3.Init_Control(); nav3.Init_PMenu_Color(); nav3.Show_VS(); nav4.cmd_search.Visible = false; nav4.cmd_report.Visible = false; nav4.Grid = vs4; nav4.FormName = this.Name + "_vs4"; nav4.Connection = PublicFunction.C_con; nav4.Init_Control(); nav4.Init_PMenu_Color(); nav4.Show_VS(LB); for (int i = 4; i < vs2.Cols.Count - 1; i++) { vs2.Cols[i].Width = 500; // vs2.AllowResizing(); vs2.AutoSizeRows(); } for (int i = 4; i < vs1.Cols.Count - 1; i++) { vs1.Cols[i].Width = 500; vs1.AutoSizeRows(); } for (int i = 4; i < vs4.Cols.Count - 1; i++) { vs4.Cols[i].Width = 500; // vs4.AllowResizing(); vs4.AutoSizeRows(); } // nav5.cmd_search.Visible=false; // nav5.cmd_report.Visible=false; // nav5.Grid=vs5; // nav5.FormName=this.Name+"_vs5"; // nav5.Connection=PublicFunction.C_con; // //// nav5.Init_Control(); //// nav5.Init_PMenu_Color(); //// nav5.Show_VS(RPT); // // nav6.cmd_search.Visible=false; // nav6.cmd_report.Visible=false; // nav6.Grid=vs6; // nav6.FormName=this.Name+"_vs6"; // nav6.Connection=PublicFunction.C_con; // nav6.Init_Control(); // nav6.Init_PMenu_Color(); // nav6.Show_VS(PMENU); }
private void frmControlStateUser_Load(object sender, System.EventArgs e) { Init_vs(); PublicFunction.L_Init_Label(this); nav.Init_PMenu_Color(); }