コード例 #1
0
ファイル: DummyApi.cs プロジェクト: tppApe/UfcppSample
        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++)));
            }
        }
コード例 #2
0
        //public void SetXMLDescription(string xml)
        //{
        //    XmlDescriptionControl.Text = xml;
        //}

        void External_ItemChanged(object sender, ItemChangedArgs e)
        {
            if (m_bAceptExternalUpdate)
            {
                FillControls();
            }
        }
コード例 #3
0
ファイル: SetShowForm.cs プロジェクト: w7789475/EVOK
        private void button2_Click(object sender, EventArgs e)
        {
            ItemChangedArgs itemArgs = new ItemChangedArgs();

            itemArgs.ItemAll    = itemAll;
            itemArgs.ItemSelect = SelectItem;
            showItemChanged(sender, itemArgs);
        }
コード例 #4
0
 void External_ItemChanged(object sender, ItemChangedArgs e)
 {
     if (m_bAceptExternalUpdate)
     {
         if (e.PropertyName == "textcontent" || e.PropertyName == "xml")
         {
             FillControls();
         }
     }
 }
コード例 #5
0
 void External_ItemChanged(object sender, ItemChangedArgs e)
 {
     if (m_bAceptExternalUpdate)
     {
         if (e.PropertyName == "bgcolor" || e.PropertyName == "alpha" || e.PropertyName == "xml")
         {
             FillControls();
         }
     }
 }
コード例 #6
0
 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();
         }
     }
 }
コード例 #7
0
 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();
         }
     }
 }
コード例 #8
0
 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();
         }
     }
 }
コード例 #9
0
 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();
         }
     }
 }
コード例 #10
0
 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();
         }
     }
 }
コード例 #11
0
 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();
         }
     }
 }
コード例 #12
0
 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();
         }
     }
 }
コード例 #13
0
 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();
         }
     }
 }
コード例 #14
0
 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();
         }
     }
 }
コード例 #15
0
ファイル: DummyApi.cs プロジェクト: tppApe/UfcppSample
        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));
            }
        }
コード例 #16
0
ファイル: SettingsForm.cs プロジェクト: TheNicker/NetSettings
 void root_ItemChanged(ItemChangedArgs args)
 {
     btnSave.Enabled = true;
 }
コード例 #17
0
 private void fData_ItemChanged(ItemChangedArgs changedArgs)
 {
     if (changedArgs.ChangedMode == ItemChangedMode.UserConfirmed)
     {
     }
 }
コード例 #18
0
 void showItemChanged(object s, ItemChangedArgs e)
 {
     //根据显示项目 进行显示
     ybdtWorkManger.ItemShowStr = e.ItemSelect;
     ybdtWorkManger.SqlShowDataTable.Rows.Clear();
 }