private void InitGroupGrid() { GrpBind = new GridViewBind <BaseEntity>(GrpGrid, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Name", new GridBindColumnAttribute { Title = "×éÃû³Æ", ReadOnly = true }))); GrpBind.Binding(MbrSelect.GroupList); }
private void LessonEditFm_Load(object sender, EventArgs e) { Biz = new LsnDataFacadeImpl(VC2WinFmApp.DataRule, this.ModifyChanged); Text = cText; GrdBind = new GridViewBind <FcLesson>(this.grdLesson, VC2WinFmApp.Cfg, null); GrdSqdBind = new GridViewBind <FcClsLesson>(this.grdSqdLesson, VC2WinFmApp.Cfg, null); GrdBind.Binding(Biz.FcLsns); new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); //窗体记忆 }
private void GrpSelectFmMulti_Load(object sender, EventArgs e) { this.Text = "Ñ¡Ôñ <" + GrpSlt.Kind + ">"; this.Bind = new GridViewBind <CheckSelectEty>(this.Grid, null, null, 0, new GridBindColumnMngImpl_Appoint(SelectList.GetColumnPropertis())); SelectList.Update(GrpSlt.List); Bind.Binding(SelectList); new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); //´°Ìå¼ÇÒä }
private void ConfirmEffectFm_Load(object sender, EventArgs e) { GrdBind = new GridViewBind <VcEffect>(grid: this.EffectsGrd, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("ClsLesson", new GridBindColumnAttribute { Title = "课程" }), new GridBindColumnAndPropertyMap("Description", new GridBindColumnAttribute { Title = "后果" }))); new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); //窗体记忆 }
private void GrpSelectFmSingle_Load(object sender, EventArgs e) { Grid.MouseDoubleClick += this.Grid_MouseDoubleClick; this.Text = "Ñ¡Ôñ <" + GrpSlt.Kind + ">"; this.Bind = new GridViewBind <BaseEntity>(this.Grid, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Name", new GridBindColumnAttribute { Title = "Ãû³Æ" }))); Bind.Binding(GrpSlt.List); Bind.PositionTo(selectEty); new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); //´°Ìå¼ÇÒä }
public SqdScheduleFm() { InitializeComponent(); TaskGridBind = new GridViewBind <EnLsnAct>(grid: TaskGrid, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Course", new GridBindColumnAttribute { Title = "课程" }))); Matrix = new SqdScheduleGrid(MainSplit.Panel2); //Matrix.Padding = 15; new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); //窗体记忆 }
private void MbrSelectFmMulti_Load(object sender, EventArgs e) { if (DesignMode) { return; } this.GrpGrid.SelectionChanged += new System.EventHandler(this.GrpGrid_SelectionChanged); this.MbrGrid.MultiSelect = false; this.MbrGrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.Bind = new GridViewBind <CheckSelectEty>(grid: this.MbrGrid, columnMng: new GridBindColumnMngImpl_Appoint(SelectList.GetColumnPropertis())); Bind.Binding(SelectList); GrpGrid_SelectionChanged(null, null); new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); //´°Ìå¼ÇÒä }
private void GroupMemberFm_Load(object sender, EventArgs e) { if (DesignMode) { return; } Debug.Assert(GrpMbrBF != null, "显示前必须设置GrpMbrBF"); MainGrdBind = new GridViewBind <BaseEntity>(this.MainGrd, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Name", new GridBindColumnAttribute { Title = "名称" }))); AttachGrdBind = new GridViewBind <BaseEntity>(this.AttachGrd, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Name", new GridBindColumnAttribute { Title = "名称" }))); MainDataIsGroup = false; new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); //窗体记忆 }
private void MbrSelectFmTch_Load(object sender, EventArgs e) { if (DesignMode) { return; } this.GrpGrid.SelectionChanged += new System.EventHandler(this.GrpGrid_SelectionChanged); this.MbrGrid.MultiSelect = false; this.MbrGrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.MbrGrid.SelectionChanged += new System.EventHandler(this.MbrGrid_SelectionChanged); this.MbrGrid.DoubleClick += new System.EventHandler(this.MbrGrid_DoubleClick); MbrBind = new GridViewBind <BaseEntity>(grid: MbrGrid, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Name", new GridBindColumnAttribute { Title = "Ãû³Æ", ReadOnly = true }))); GrpGrid_SelectionChanged(null, null); new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); //´°Ìå¼ÇÒä }
private void MainFm_Load(object sender, EventArgs e) { this.WindowState = ExDbg.IsAttached ? FormWindowState.Normal : FormWindowState.Maximized; VC2WinFmApp.ErrorLog = new SimpleLogImpl_Text(ExApp_WinFm.GetAssistFileName("Log", "_Error.Log"), true, 10 * 1000, LogLevel.All); String connStr; var dbFile = Application.StartupPath + "\\VC.mdb"; if (new FileInfo(dbFile).Exists) { connStr = String.Format(VC2WinFmApp.cConnStr, dbFile); } else { dbFile = Application.StartupPath + "\\..\\..\\VC.mdb"; connStr = String.Format(VC2WinFmApp.cConnStr, dbFile); } var dac = new DataAccessImpl(connStr, VC2WinFmApp.ErrorLog); VC2WinFmApp.Cfg = dac.Config; VC2WinFmApp.MainFm = this; VC2WinFmApp.DataRule = new DataRuleImpl(dac); VC2WinFmApp.Engine = new EngineV2(VC2WinFmApp.DataRule); VC2WinFmApp.DataFacade = new DataFacadeImpl(VC2WinFmApp.DataRule); VC2WinFmApp.MessageSwitch = new MessageSwitch(); VC2WinFmApp.Engine.GroupChange += VC2WinFmApp.MessageSwitch.OnGroupChange; VC2WinFmApp.Engine.FailActChange += VC2WinFmApp.MessageSwitch.OnFailActChange; VC2WinFmApp.Engine.ModifiedChange += VC2WinFmApp.MessageSwitch.OnModifiedChange; VC2WinFmApp.Engine.ScheduleUpdate += VC2WinFmApp.MessageSwitch.OnScheduleUpdate; ConfigViewFm.LoadViewStyle(); this.Text = VC2WinFmApp.Name; AddExportMenu(); DataGrpBind = new GridViewBind <BaseEntity>(GroupGrid, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Name", new GridBindColumnAttribute { Title = "名称" }))); DataMbrBind = new GridViewBind <BaseEntity>(MemberGrid, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Name", new GridBindColumnAttribute { Title = "名称" }))); FailActBind = new GridViewBind <EnFailAct>(FailActGrid, columnMng: new GridBindColumnMngImpl_Appoint( new GridBindColumnAndPropertyMap("Name", new GridBindColumnAttribute { Title = "任务名称" }))); Application.DoEvents(); VC2WinFmApp.Engine.Init(); new FormMemoryImpl(this, VC2WinFmApp.Cfg, "FormRem"); try { if (!ExDbg.IsAttached) { Process.Start(VC2WinFmApp.ProductHomePage); } } catch { } }