private void SetAccountInfo() { if (!this.blNewFlag) { VarCal info = modelObj as VarCal; this.SetDataBind(info); } }
private void BtnAddCal_Click(object sender, EventArgs e) { FmVarCal fm = new FmVarCal(); fm.SelectValue += (obj) => { VarCal info = obj as VarCal; mDataGridCal.AddItem <VarCal>(info); }; fm.ShowDialog(); }
private void BtnEditCal_Click(object sender, EventArgs e) { if (mDataGridCal.CurrentRow == null) { return; } VarCal old = mDataGridCal.GetCurrentEntity() as VarCal; FmVarCal fm = new FmVarCal(old); fm.SelectValue += (obj) => { VarCal info = obj as VarCal; mDataGridCal.EditCurrentItem <VarCal>(info); }; fm.ShowDialog(); }
protected override bool BtnOkClick() { Dictionary <Control, string> dicEmptyCtrs = this.GetValidEmptyCtrs(); if (dicEmptyCtrs.Count > 0) { foreach (var ctr in dicEmptyCtrs.Keys) { Miles.Framework.UI.Function.MForm.SetToolTip(ctr, dicEmptyCtrs[ctr], 1000); return(false); } } VarCal info = this.GetDataBind <VarCal>(); this.DoSelectValueEvent(info); return(true); }
public FmVarCal(VarCal info) : base(info) { InitializeComponent(); }