Esempio n. 1
0
 public Order(Form form, ContactPerson contactperson)
 {
     Form = form;
     ContactPerson = contactperson;
 }
Esempio n. 2
0
        public PlagueMap(ToolTip toolTip, Dictionary <String, Color> befCol, Dictionary <String, Color> colOffset,
                         Dictionary <String, int[]> sumData, Dictionary <int, Color> plgCol, Form parent)
        {
            //this.img=plagueMap.Image;
            //img= (Bitmap)Bitmap.FromFile("C:\\Users\\lpjworkroom\\Desktop\\CoV2019MIS\\CoV2019MIS\\CoV2019MIS\\Resources\\map.gif");
            img = (Bitmap)Bitmap.FromFile("..\\..\\Resources\\map.gif");
            //ResourceManager rm = new ResourceManager("myResources", Assembly.GetExecutingAssembly());

            //img = (Bitmap)rm.GetObject("map.gif");

            this.colOffset = colOffset;
            this.toolTip   = toolTip;
            this.parent    = parent;
            this.sumData   = sumData;
            this.befCol    = befCol;
            foreach (var b in plgCol.Keys)
            {
                plgBound.Add(b);
            }
            plgBound.Sort();
            foreach (var b in plgBound)
            {
                /*convert rgb array dict into Color dict*/
                Color col = plgCol[b];
                this.plgCol.Add(col);
            }
            /*show the map*/
            colorBySum();
        }