public void ToRight(object obj) { if (LeftIndex.Equals(-1)) { return; } int index = LeftIndex; Model.BlankingRecordLeftModel.DataModel model = LeftData[LeftIndex]; LeftData.RemoveAt(LeftIndex); if (!LeftData.Count.Equals(0)) { LeftIndex = index >= LeftData.Count ? (LeftData.Count - 1) : index; } blankingRecordBLL.GetUpdateBlankingRecordLeftResult(ICode, BCode, model.ID); RightData.Add(new Model.BlankingRecordRightModel.DataModel() { ID = model.ID, BiankingSize = model.BiankingSize }); }
private void OK() { signal.name = textBoxName.Text; signal.label_name.Text = textBoxName.Text; if (radioButtonUserDefined.Checked == false) { signal.Default_Value = textBoxValue.Text; } else { signal.Default_Value = ""; } if (radioButtonInteger.Checked == true) { signal.Type = "Integer"; } if (radioButtonLogic.Checked == true) { signal.Type = cbPortType.SelectedItem as string; if (checkBoxIsBus.Checked == true) { signal.Type_inf.avaliable = true; signal.Type_inf.range1 = LeftIndex.ToString(); signal.Type_inf.range2 = RightIndex.ToString(); } } if (radioButtonUserDefined.Checked == true) { signal.Type = textBoxType.Text; } if (signal is Schematix.FSM.My_Constant) { core.AddToHistory("Constant " + signal.name + " change properties"); } if (signal is Schematix.FSM.My_Port) { Schematix.FSM.My_Port p = signal as Schematix.FSM.My_Port; if (radioButtonInput.Checked == true) { p.Direction = Schematix.FSM.My_Port.PortDirection.In; } if (radioButtonOutput.Checked == true) { p.Direction = Schematix.FSM.My_Port.PortDirection.Out; } if (radioButtonInout.Checked == true) { p.Direction = Schematix.FSM.My_Port.PortDirection.InOut; } if (radioButtonCombinatioral.Checked == true) { p.Port_Type = Schematix.FSM.My_Port.PortType.Combinatioral; } if (radioButtonRegistered.Checked == true) { p.Port_Type = Schematix.FSM.My_Port.PortType.Registered; } if (radioButtonClocked.Checked == true) { p.Port_Type = Schematix.FSM.My_Port.PortType.Clocked; } if (checkBoxClock.Checked == true) { p.Port_Type = Schematix.FSM.My_Port.PortType.Clock; } if (checkBoxClockEnable.Checked == true) { p.Port_Type = Schematix.FSM.My_Port.PortType.ClockEnable; } } if (signal is Schematix.FSM.My_Signal) { core.AddToHistory("Signal " + signal.name + " change properties"); } }