예제 #1
0
        private UserControl InitiUCProductAll(ref String TagControl, ref string Title)
        {
            UserControl usControl;

            if (Title.Contains("НДС"))
            {
                TagControl += "NDS";
                if (!FindOpenedTabs(TagControl))
                {
                    usControl = new UCProductAll(this.fullDataSet, true);
                }
                else
                {
                    return(null);
                }
            }
            else
            {
                TagControl += "outNDS";
                if (!FindOpenedTabs(TagControl))
                {
                    usControl = new UCProductAll(this.fullDataSet, false);
                }
                else
                {
                    return(null);
                }
            }
            usControl.Dock = DockStyle.Fill;

            usControl.Tag = Title;

            return(usControl);
        }
예제 #2
0
파일: MainForm.cs 프로젝트: vpjulia/Salvia
        private UserControl InitiUCProductAll( ref String TagControl ,ref string Title)
        {
            UserControl usControl;

            if (Title.Contains("НДС"))
            {
                TagControl += "NDS";
                if (!FindOpenedTabs(TagControl))
                {
                    usControl = new UCProductAll(this.fullDataSet, true);
                }
                else
                    return null;

            }
            else
            {
                TagControl += "outNDS";
                if (!FindOpenedTabs(TagControl))
                {
                    usControl = new UCProductAll(this.fullDataSet, false);
                }
                else
                    return null;

            }
            usControl.Dock = DockStyle.Fill;

            usControl.Tag = Title;
            
            return usControl;            
        
        
        }