private IEnumerable <ItemChangedArgs <Unit> > HireUnitInternal(int masterId) { // No such unit master. if (!DummyMasters.UnitMasters.ContainsKey(masterId)) { yield break; } // A leader unit must be single. if (DummyMasters.UnitMasters[masterId].IsLeader) { yield break; } // Special offer! Buy one Get one! if (masterId == 1005) { yield return(ItemChangedArgs.Add(DummyMasters.UnitMasters[masterId].GetInstance(_id++))); yield return(ItemChangedArgs.Add(DummyMasters.UnitMasters[masterId].GetInstance(_id++))); } else { yield return(ItemChangedArgs.Add(DummyMasters.UnitMasters[masterId].GetInstance(_id++))); } }
//public void SetXMLDescription(string xml) //{ // XmlDescriptionControl.Text = xml; //} void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { FillControls(); } }
private void button2_Click(object sender, EventArgs e) { ItemChangedArgs itemArgs = new ItemChangedArgs(); itemArgs.ItemAll = itemAll; itemArgs.ItemSelect = SelectItem; showItemChanged(sender, itemArgs); }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "textcontent" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "bgcolor" || e.PropertyName == "alpha" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "align" || e.PropertyName == "interlace" || e.PropertyName == "pixel-ar" || e.PropertyName == "scale" || e.PropertyName == "edges-smooth" || e.PropertyName == "play-mode" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "glow-enabled" || e.PropertyName == "glow-size-x" || e.PropertyName == "glow-size-y" || e.PropertyName == "glow-value" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "shapetype" || e.PropertyName == "nsides" || e.PropertyName == "round-corners" || e.PropertyName == "rotate" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "font" || e.PropertyName == "font-size" || e.PropertyName == "word-break" || e.PropertyName == "textformat" || e.PropertyName == "textflip" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "shadow-enabled" || e.PropertyName == "shadow-blur" || e.PropertyName == "shadow-alpha" || e.PropertyName == "shadow-offset-x" || e.PropertyName == "shadow-offset-y" || e.PropertyName == "shadow-color" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "posx" || e.PropertyName == "posx" || e.PropertyName == "width" || e.PropertyName == "height" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "ticker-speed" || e.PropertyName == "gaplesscrawl" || e.PropertyName == "ticker-line-height" || e.PropertyName == "ticker-distance" || e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "textcolor") { GetColor(); } else if (e.PropertyName == "textcolor-angle") { GetColorAngle(); } else if (e.PropertyName == "xml") { FillControls(); } } }
void External_ItemChanged(object sender, ItemChangedArgs e) { if (m_bAceptExternalUpdate) { if (e.PropertyName == "outline-color") { GetColor(); } else if (e.PropertyName == "outline") { GetOutlineWidth(); } else if (e.PropertyName == "xml") { FillControls(); } } }
private IEnumerable <ItemChangedArgs <Unit> > FireUnitInternal(int id) { var u = _units.FirstOrDefault(x => x.Id == id); // No such unit. if (u == null) { yield break; } // Fire! _units.Remove(u); yield return(ItemChangedArgs.Remove <Unit>(id)); // If the leader is fired, a new leader is hired. if (DummyMasters.UnitMasters[u.MasterId].IsLeader) { var newLeader = _dummy.GetRandomLeader().GetInstance(_id++); _units.Add(newLeader); yield return(ItemChangedArgs.Add(newLeader)); } }
void root_ItemChanged(ItemChangedArgs args) { btnSave.Enabled = true; }
private void fData_ItemChanged(ItemChangedArgs changedArgs) { if (changedArgs.ChangedMode == ItemChangedMode.UserConfirmed) { } }
void showItemChanged(object s, ItemChangedArgs e) { //根据显示项目 进行显示 ybdtWorkManger.ItemShowStr = e.ItemSelect; ybdtWorkManger.SqlShowDataTable.Rows.Clear(); }