public string GetSceneName() { if (SceneName.IsInvStr()) { return(TDID.Replace(BaseConstMgr.Prefix_Scene, "")); } return(SceneName); }
public string GetTDID() { if (TDID.IsInv()) { return(LastName + FirstName); } return(TDID); }
public string GetRawSceneName() { var ret = SceneName; if (ret.IsInv()) { ret = TDID.Replace(Const.Prefix_Battle, ""); } return(ret); }
public void PlaceUpdate() { RowSelectionModel sm = this.GridPanel2.SelectionModel.Primary as RowSelectionModel; if (sm.SelectedRows.Count == 1) { TDID.SetValue(sm.SelectedRows[0].RecordID.Trim()); Window2.Show(); } else { Ext.Msg.Alert("提示", "请只选择一个要修改的地点!").Show(); } }
public virtual string GetSceneName() { var ret = SceneName; if (ret.IsInv()) { ret = TDID.Replace(Const.Prefix_Battle, ""); } if (BaseSettingData.IsSimpleTerrin) { ret = ret + Const.Suffix_Simple; } return(ret); }
private void Submit_Click(object sender, EventArgs e) { DependentUser dp = new DependentUser(TDID.Text.ToString(), TDName.Text.ToString(), Convert.ToInt32(DType.SelectedValue.ToString()), CEID.SelectedValue.ToString(), TDOB.Value); if (mem.RegisterDependent(dp)) { MessageBox.Show("Update Successful"); } else { MessageBox.Show("Update Failed"); } dataGridView2.Refresh(); TDID.Clear(); TDName.Clear(); //TDOB.Clear(); cb.FillDataGrid(dataGridView2, "Dependent"); //ViewDependent(); }