Beispiel #1
0
        private void CMMNew_Click(object sender, EventArgs e)
        {
            if (!TravianData.Villages.ContainsKey(SelectVillage))
                return;

            TVillage CV = TravianData.Villages[SelectVillage];
            if (CV.isBuildingInitialized == 2)
            {
                /*
                bool market = false;
                foreach (var x in CV.Buildings)
                        if (CV.Buildings[x.Key].Gid == 17)
                                market = true;
                if (!market)
                {
                        MessageBox.Show("尚未兴建市场? 请建造市场或更新资料");
                        return;
                }
                */
                TransferSetting ts = new TransferSetting(tr)
                {
                    FromVillageID = this.SelectVillage,
                    TravianData = this.TravianData,
                    mui = this.mui
                };

                if (ts.ShowDialog() == DialogResult.OK && ts.Return != null)
                {
                    CV.Queue.Add(ts.Return);
                    lvi(ts.Return);
                }
            }
        }
Beispiel #2
0
        private void CMMNew_Click(object sender, EventArgs e)
        {
            if (!TravianData.Villages.ContainsKey(SelectVillage))
                return;

            TVillage CV = TravianData.Villages[SelectVillage];
            if (CV.isBuildingInitialized == 2)
            {
                TransferSetting ts = new TransferSetting(tr)
                {
                    FromVillageID = this.SelectVillage,
                    TravianData = this.TravianData,
                    mui = this.mui
                };

                if (ts.ShowDialog() == DialogResult.OK && ts.Return != null)
                {
                    CV.Queue.Add(ts.Return);
                    lvi(ts.Return);
                }
            }
        }