Ejemplo n.º 1
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            string fileName = StudentNameLabel.Text + " ID-" + Convert.ToString(studentId) + ".rtf";
            string savePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, fileName);

            CharacteristicRichText.SaveFile(savePath);
            MessageBox.Show("Данi збережено !", "", MessageBoxButtons.OK);
        }
Ejemplo n.º 2
0
        private void CharacteristicForm_Load(object sender, EventArgs e)
        {
            string fileName = StudentNameLabel.Text + " ID-" + Convert.ToString(studentId) + ".rtf";
            string loadPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, fileName);

            if (File.Exists(loadPath))
            {
                CharacteristicRichText.LoadFile(loadPath);
            }
        }