private void openButton_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); dialog.CheckFileExists = true; dialog.CheckPathExists = true; dialog.AddExtension = true; dialog.DefaultExt = ".futb"; dialog.Filter = "Funktagebuch|*.futb"; if (dialog.ShowDialog() == DialogResult.OK) { funktagebuch = Funktagebuch.Open(dialog.FileName); } }
private void mainForm_Shown(object sender, EventArgs e) { funktagebuch = new Funktagebuch(); AskForInfos(); UpdateViews(); }