private void SetAccountInfo() { if (!this.blNewFlag) { RanageFormula info = modelObj as RanageFormula; this.SetDataBind(info); } }
private void BtnAddGt_Click(object sender, EventArgs e) { FmSzcFormula fm = new FmSzcFormula(); fm.SelectValue += (obj) => { RanageFormula info = obj as RanageFormula; mDataGridGt.AddItem <RanageFormula>(info); }; fm.ShowDialog(); }
private void BtnEditGt_Click(object sender, EventArgs e) { if (mDataGridGt.CurrentRow == null) { return; } RanageFormula old = mDataGridGt.GetCurrentEntity() as RanageFormula; FmSzcFormula fm = new FmSzcFormula(old); fm.SelectValue += (obj) => { RanageFormula info = obj as RanageFormula; mDataGridGt.EditCurrentItem <RanageFormula>(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); } } RanageFormula info = this.GetDataBind <RanageFormula>(); this.DoSelectValueEvent(info); return(true); }
public FmSzcFormula(RanageFormula info) : base(info) { InitializeComponent(); }