예제 #1
0
        void ReleaseDesignerOutlets()
        {
            if (BigImage != null)
            {
                BigImage.Dispose();
                BigImage = null;
            }

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

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

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

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

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

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

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

            if (UserImage != null)
            {
                UserImage.Dispose();
                UserImage = null;
            }
        }
예제 #2
0
            protected virtual void Dispose(bool disposing)
            {
                if (!disposedValue)
                {
                    if (disposing)
                    {
                        WriteAction = null;
                        ReadAction  = null;

                        // 以下、固有定義開放
                        Caption?.Dispose();
                        Caption = null;
                        Value   = null;
                        Connector?.Dispose();
                        Connector = null;
                        CbSTUtils.ForeachDispose(Arguments);
                        Arguments = null;
                    }
                    disposedValue = true;
                }
            }
예제 #3
0
        void ReleaseDesignerOutlets()
        {
            if (Caption != null)
            {
                Caption.Dispose();
                Caption = null;
            }

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

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

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

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

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

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

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

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

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

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