Example #1
0
        //This is made not to decide rather the player is male or female, but only for sending the new name.
        void lblCreateChar_Click(object sender, SdlDotNet.Widgets.MouseButtonEventArgs e)
        {
            string name = txtName.Text;

            Enums.Sex sex = Enums.Sex.Male;
            if (optFemale.Checked)
            {
                sex = Enums.Sex.Female;
            }
            winLoading loading = new winLoading();

            loading.Show();
            loading.UpdateLoadText("Sending Character...");
            Messenger.SendNewChar(name, sex, charSlot);
            this.Close();
        }
Example #2
0
 //This is made not to decide rather the player is male or female, but only for sending the new name.
 void lblCreateChar_Click(object sender, SdlDotNet.Widgets.MouseButtonEventArgs e)
 {
     string name = txtName.Text;
     Enums.Sex sex = Enums.Sex.Male;
     if (optFemale.Checked) sex = Enums.Sex.Female;
     winLoading loading = new winLoading();
     loading.Show();
     loading.UpdateLoadText("Sending Character...");
     Messenger.SendNewChar(name, sex, charSlot);
     this.Close();
 }