예제 #1
0
        private bool SaveAs()
        {
            bool success = false;

            System.Windows.Forms.DialogResult result = saveFileDialog1.ShowDialog();
            if (result == System.Windows.Forms.DialogResult.OK)
            {
                Save(saveFileDialog1.FileName);
                currentFileEditor.SetPath(saveFileDialog1.FileName);
                currentFileEditor.SetShortName(Path.GetFileName(saveFileDialog1.FileName));
                currentFileEditor.SetNew(false);
                tabControl.SelectedTab.Text = currentFileEditor.ShortName();
                success = true;
            }
            return(success);
        }