////////////////////////////////////////////////////////////////////////// protected override void OnEdit(object sender, EventArgs e) { TiledImgEditorForm dlg = new TiledImgEditorForm(); dlg.Game = this.Game; dlg.AppMgr = this.AppMgr; if (BtnOK.Enabled) dlg.OrigFilename = TxtFilename.Text; if(dlg.ShowDialog() == DialogResult.OK) { if (dlg.Filename != "" && dlg.Filename != null) TxtFilename.Text = dlg.Filename; } }
////////////////////////////////////////////////////////////////////////// protected override void OnEdit(object sender, EventArgs e) { TiledImgEditorForm dlg = new TiledImgEditorForm(); dlg.Game = this.Game; dlg.AppMgr = this.AppMgr; if (BtnOK.Enabled) { dlg.OrigFilename = TxtFilename.Text; } if (dlg.ShowDialog() == DialogResult.OK) { if (dlg.Filename != "" && dlg.Filename != null) { TxtFilename.Text = dlg.Filename; } } }