Esempio n. 1
0
        private void flowpnlClaimData_DragDrop(object sender, DragEventArgs e)
        {
            string jsonClaimData;

            if (_dropFormatIsFile)
            {
                var x = e.Data.GetData(DataFormats.FileDrop);
                using (var reader = File.OpenText(((string[])e.Data.GetData(DataFormats.FileDrop))[0]))
                {
                    jsonClaimData = reader.ReadToEnd();
                }
            }
            else //text dropped directly
            {
                jsonClaimData = e.Data.GetData(DataFormats.Text).ToString();
            }

            ClaimData = JsonConvert.DeserializeObject <ClaimData>(jsonClaimData);
        }
Esempio n. 2
0
 private void btnStart_Click(object sender, EventArgs e)
 {
     ClaimData        = null;
     Scores           = null;
     btnApply.Enabled = false;
 }