Example #1
0
        private void InvokeUpdateRecipeList(bool noHandle, CRecipeList mRecipeList)
        {
            if (mRecipeList == null)
            {
                return;
            }

            comboBox2.Items.Clear();

            foreach (var item in mRecipeList.RecipeList)
            {
                comboBox2.Items.Add(item.Key.ToString());
            }
        }
Example #2
0
        private void InvokeUpdateData(bool noHandle, CRecipeList cimStatusData)
        {
            Bitmap   bitmap      = new Bitmap(this.Width, this.Height);
            Graphics g           = Graphics.FromImage(bitmap);
            int      columnCount = 32;
            int      width       = this.Width / columnCount;
            int      height      = this.Height / columnCount;

            for (int i = 0; i < 1000; i++) //999
            {
                this.DrawRecipeBox(g, i, columnCount, width, height, cimStatusData.RecipeList.ContainsKey(i));
            }
            if (this.BackgroundImage != null)
            {
                this.BackgroundImage.Dispose();
            }

            this.BackgroundImage = bitmap;

            g.Dispose();
        }