コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (LabelDosage != null)
            {
                LabelDosage.Dispose();
                LabelDosage = null;
            }

            if (LabelIntevall != null)
            {
                LabelIntevall.Dispose();
                LabelIntevall = null;
            }

            if (LabelName != null)
            {
                LabelName.Dispose();
                LabelName = null;
            }
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (Img != null)
            {
                Img.Dispose();
                Img = null;
            }

            if (LabelDosage != null)
            {
                LabelDosage.Dispose();
                LabelDosage = null;
            }

            if (LabelLast != null)
            {
                LabelLast.Dispose();
                LabelLast = null;
            }

            if (LabelName != null)
            {
                LabelName.Dispose();
                LabelName = null;
            }

            if (LabelNext != null)
            {
                LabelNext.Dispose();
                LabelNext = null;
            }

            if (LabelStock != null)
            {
                LabelStock.Dispose();
                LabelStock = null;
            }
        }