Пример #1
0
        // menustrip --> File --> Create new log... - richiama new Changelog()
        private void createNewLogToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try {
                check_saved();
                createFileDialog.ShowDialog();
                if (createFileDialog.FileName != "")
                {
                    log = new Changelog(createFileDialog.FileName);
                    enable_controls();
                    this.Text = log.getLogPath();
                    this.dataGridView1.DataSource = log.getDs().Tables[0];

                    resetFLR();
                    resetRLT();

                    setLastPath(log.getLogDir());
                }
            }catch (Exception ex)
            {
                MessageBox.Show("Errore durante la creazione del log: " + ex.Message);
            }
        }
Пример #2
0
 public MainForm()
 {
     InitializeComponent();
     log       = new Changelog();
     last_size = this.Size;
 }