private void SetAccountInfo() { if (!this.blNewFlag) { VarInput info = modelObj as VarInput; this.SetDataBind(info); } }
public void VarInputTest(int baseAddress, int byteLength, string inputName) { var ObjectToTest = new VarInput(baseAddress, byteLength, inputName); Assert.AreEqual(baseAddress, ObjectToTest.BaseAddress); Assert.AreEqual(byteLength, ObjectToTest.ByteLength); Assert.AreEqual(inputName, ObjectToTest.Name); Assert.IsNotNull(ObjectToTest.ByteArray); }
private void listInputs_SelectedIndexChanged(object sender, EventArgs e) { if (this.listInputs.SelectedIndex <= -1) { return; } this._myInput = this._varInput[this.listInputs.SelectedIndex]; this.ShowProperties(); }
private void BtnAddInput_Click(object sender, EventArgs e) { FmVarInput fm = new FmVarInput(); fm.SelectValue += (obj) => { VarInput info = obj as VarInput; mDataGridInput.AddItem <VarInput>(info); }; fm.ShowDialog(); }
public void AddObject(VarInput InputObject) { this._varInput.Add(InputObject); int num = this.listInputs.Items.Add((object)InputObject.ToString()); this.lblObjects.Text = string.Format("Available Objects: {0}", (object)this._varInput.Count.ToString()); if (num != 0) { return; } this._myInput = this._varInput[0]; this.listInputs.SelectedIndex = 0; this.ShowProperties(); }
private void BtnEditInput_Click(object sender, EventArgs e) { if (mDataGridInput.CurrentRow == null) { return; } VarInput old = mDataGridInput.GetCurrentEntity() as VarInput; FmVarInput fm = new FmVarInput(old); fm.SelectValue += (obj) => { VarInput info = obj as VarInput; mDataGridInput.EditCurrentItem <VarInput>(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); } } VarInput info = this.GetDataBind <VarInput>(); this.DoSelectValueEvent(info); return(true); }
public FmVarInput(VarInput info) : base(info) { InitializeComponent(); }
public InOut(int id, VarInput input, VarOutput output) { this.Id = id; this.Input = input; this.Output = output; }