Exemplo n.º 1
0
        private void Open_Click_1(object sender, EventArgs e)
        {
            var ofd = new OpenFileDialog()
            {
                Filter = "Файл заказа|*.sushi"
            };
            var result = ofd.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                var dto = OrderDto.LoadFromFile(ofd.FileName);
                SetModelToUI(dto);
            }
        }