private void button3_Click(object sender, EventArgs e) { var modelViewer = new ModelViewerSearchForm(ModelViewerSearchForm.ModelType.Item); modelViewer.SelectClicked += (o, args) => { _Model.Text = o.ToString(); }; modelViewer.Show(this); }
private void button6_Click(object sender, System.EventArgs e) { var modelViewer = new ModelViewerSearchForm(ModelViewerSearchForm.ModelType.Mob); modelViewer.SelectClicked += (o, args) => { _Model.Text = $@"{_Model.Text};{o.ToString()}".Trim(';'); }; modelViewer.Show(this); }
private void button1_Click(object sender, EventArgs e) { var modelViewer = new ModelViewerSearchForm(ModelViewerSearchForm.ModelType.Item); modelViewer.SelectClicked += (o, args) => { _Model.Text = o.ToString(); _imageService.LoadItem((int)o, pictureBox1.Width, pictureBox1.Height) .ContinueWith(x => _imageService.AttachImage(pictureBox1, x)); }; modelViewer.Show(this); }