Example #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);
        }
Example #2
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;            
        
        
        }