示例#1
0
        private void CreationBTN_Click(object sender, EventArgs e)
        {
            CharacterForm UGCForm = new CharacterForm(this, SPath);

            UGCForm.Visible = true;
            UGCForm.Activate();
            this.Visible = false;
        }
示例#2
0
        private void UseBTN_Click(object sender, EventArgs e)
        {
            using (OpenFileDialog OFD = new OpenFileDialog())
            {
                OFD.InitialDirectory = SPath;
                OFD.Filter           = "DDC fies (*.ddc)|*.ddc";
                OFD.FilterIndex      = 1;
                OFD.RestoreDirectory = true;

                if (OFD.ShowDialog() == DialogResult.OK)
                {
                    CharacterForm UGCForm = new CharacterForm(this, OFD.FileName, SPath);
                    UGCForm.Visible = true;
                    UGCForm.Activate();
                    this.Visible = false;
                }
            }
        }