private void Open(string path) { this.path = path; tbPath.Text = path; IBlock[] blocks; BlockManager.ReadFile(path, out blocks); Load(blocks); Edited = false; gridAdd.Visibility = Visibility.Hidden; }