private void ToBk2MenuItem_Click(object sender, EventArgs e) { var bk2 = CurrentTasMovie.ToBk2(true); bk2.Save(); MessageStatusLabel.Text = Path.GetFileName(bk2.Filename) + " created."; }
private void ToBk2MenuItem_Click(object sender, EventArgs e) { _autosaveTimer.Stop(); var bk2 = CurrentTasMovie.ToBk2(true); MessageStatusLabel.Text = "Exporting to .bk2..."; this.Cursor = Cursors.WaitCursor; Update(); bk2.Save(); if (Settings.AutosaveInterval > 0) { _autosaveTimer.Start(); } MessageStatusLabel.Text = bk2.Name + " exported."; this.Cursor = Cursors.Default; }
private void SaveBk2BackupMenuItem_Click(object sender, EventArgs e) { _autosaveTimer.Stop(); var bk2 = CurrentTasMovie.ToBk2(copy: true, backup: true); MessageStatusLabel.Text = "Exporting to .bk2..."; this.Cursor = Cursors.WaitCursor; Update(); bk2.SaveBackup(); if (Settings.AutosaveInterval > 0) { _autosaveTimer.Start(); } MessageStatusLabel.Text = "Backup .bk2 saved to \"Movie backups\" path."; this.Cursor = Cursors.Default; }
private void ToBk2MenuItem_Click(object sender, EventArgs e) { _autosaveTimer.Stop(); var bk2 = CurrentTasMovie.ToBk2(true); MessageStatusLabel.Text = "Exporting to .bk2..."; this.Cursor = Cursors.WaitCursor; Update(); if (_autosaveAppendFilenamePending) { var ext = bk2.PreferredExtension; bk2.Filename = bk2.Filename.Replace(ext, "backup." + ext); } bk2.Save(); if (Settings.AutosaveInterval > 0) { _autosaveTimer.Start(); } MessageStatusLabel.Text = bk2.Name + " exported."; this.Cursor = Cursors.Default; }