예제 #1
0
        private void CMVRename_Click(object sender, EventArgs e)
        {
            if (!TravianData.Villages.ContainsKey(SelectVillage))
                return;
            var CV = TravianData.Villages[SelectVillage];
            int VillageID = CV.ID;
            string VillageName = string.Empty;
            Rename newname = new Rename()
            {
                VillageID = CV.ID,
                mui = mui,
                UpCall = tr
            };

            if (newname.ShowDialog() == DialogResult.OK)
            {
                VillageName = newname.VillageName;
                if (CV.Name == VillageName)
                    return;
                else
                    tr.Rename(VillageID, VillageName);
            }
        }
예제 #2
0
        private void CMVRename_Click(object sender, EventArgs e)
        {
            if (!TravianData.Villages.ContainsKey(SelectVillage))
                return;
            var CV = TravianData.Villages[SelectVillage];
            Rename newname = new Rename()
            {
                ReVillageID = CV.ID,
                oldVillagename = CV.Name.ToString(),
                mui = mui,
                UpCall = tr
            };

            if (newname.ShowDialog() == DialogResult.OK)
            {
                return;
            }
        }