예제 #1
0
        private void btSaveasRight_Click(object sender, EventArgs e)
        {
            int ipos = lbRightMemCardFile.Text.LastIndexOf("\\");

            if (ipos > -1)
            {
                String sPath = lbRightMemCardFile.Text.Substring(0, ipos);
                if (Directory.Exists(sPath))
                {
                    sfdSaveMem.InitialDirectory = sPath;
                }
            }
            if (DialogResult.OK == sfdSaveMem.ShowDialog())
            {
                _memCardRight.saveMemoryCard(sfdSaveMem.FileName, _memCardRight.cardType);
            }
        }
예제 #2
0
 private void btSaveLeft_Click(object sender, EventArgs e)
 {
     _memCardLeft.saveMemoryCard(lbLeftMemCardFile.Text, _memCardLeft.cardType);
 }