private void openFilePngButton_Click(object sender, EventArgs e) { OpenFileDialog open = new OpenFileDialog(); open.Filter = "Image Files(*.png;)| *.png; "; if (open.ShowDialog() == DialogResult.OK) { Opener.OpenFileAsPng(open.FileName, CurrentViewPort); tabMenu.SelectedTab.Text = Path.GetFileNameWithoutExtension(open.FileName); } statusBar.Items[0].Text = "Last action: Uploading project file as draw"; CurrentViewPort.Refresh(); }