public EditValue(RSItem item, ItemManager im, ContainView cv)
        {
            InitializeComponent();
            this.DoubleBuffered = true;
            FontManager.setFont(14);
            this.font = FontManager.customFont;
            this.item = item;
            this.im   = im;
            this.cv   = cv;

            setValBT.Font           = font;
            editItemLabel.Font      = font;
            txtLBL.Font             = font;
            txtLBL.Font             = new Font(font.FontFamily, 12, FontStyle.Regular);
            editItemLabel.ForeColor = Color.Yellow;
            valueTB.Font            = txtLBL.Font;
            valueTB.Text            = item.ownedAmount.ToString();
            Image nameImage = cv.findImageInResources(item.imageName);

            if (item.ownedAmount > 0)
            {
                itemPB.Image = nameImage;
            }
            else
            {
                itemPB.Image = cv.SetImageOpacity(nameImage, 0.3f);
            }
        }
Beispiel #2
0
        void goToMenu(object sender, EventArgs e)
        {
            Control     sentBy   = sender as Control;
            string      formName = sentBy.Name;
            ContainView cv       = new ContainView(formName, this.im, this.Location, this.us);

            this.Close();
            cv.Show();
            cv.BringToFront();
        }