コード例 #1
0
ファイル: LayoutView.cs プロジェクト: Ejik/Acotwin
        ISmartPartInfo ISmartPartInfoProvider.GetSmartPartInfo(Type smartPartInfoType)
        {
            ISmartPartInfo spi;
            if (smartPartInfoType.IsAssignableFrom(typeof(ACOT.Infrastructure.Interface.WindowSmartPartInfo)))
            {
                WindowSmartPartInfo LayoutView = new WindowSmartPartInfo();
                LayoutView.Modal = false;
                LayoutView.MinimizeBox = true;
                LayoutView.MaximizeBox = true;
                LayoutView.ControlBox = true;
                LayoutView.Width = ACOT.InfoViewModule.Properties.Settings.Default.Size.Width;
                LayoutView.Height = ACOT.InfoViewModule.Properties.Settings.Default.Size.Height;
                LayoutView.Location = ACOT.InfoViewModule.Properties.Settings.Default.Location;

                LayoutView.Keys[WindowWorkspaceSetting.FormBorderStyle] = FormBorderStyle.Sizable;
                //LayoutView.Keys[WindowWorkspaceSetting.AcceptButton] = this._oKbtn;
                //LayoutView.Keys[WindowWorkspaceSetting.CancelButton] = this._cancelBtn;
                LayoutView.Keys[WindowWorkspaceSetting.KeyPreview] = true;
                LayoutView.Keys[WindowWorkspaceSetting.KeyDown] = new KeyEventHandler(InfoView_KeyDown);
                LayoutView.Keys[WindowWorkspaceSetting.FormShowIcon] = false;
                //LayoutView.Keys[WindowWorkspaceSetting.StartPosition] = FormStartPosition.CenterParent;
                //LayoutView.Keys[WindowWorkspaceSetting.AutoSize] = true;

                spi = LayoutView;
            }
            else
            {
                spi = Activator.CreateInstance(smartPartInfoType) as ISmartPartInfo;
            }

            //spi.Description = Properties.Resources.FindCustomerResultsViewDescription;
            spi.Title = "Просмотр информации о файлах";

            return spi;
        }
コード例 #2
0
ファイル: GlassBackgroundView.cs プロジェクト: Ejik/chkaddr
        public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
        {
            ISmartPartInfo spi;
            if (smartPartInfoType.IsAssignableFrom(typeof(WindowSmartPartInfo)))
            {
                WindowSmartPartInfo LayoutView = new WindowSmartPartInfo();
                LayoutView.ControlBox = false;

                LayoutView.Keys[WindowWorkspaceSetting.FormBorderStyle] = FormBorderStyle.None;
                LayoutView.Keys[WindowWorkspaceSetting.WindowState] = FormWindowState.Maximized;
                LayoutView.Keys[WindowWorkspaceSetting.FormShowIcon] = false;
                //LayoutView.Keys[WindowWorkspaceSetting.AutoSize] = true;
                LayoutView.Keys[WindowWorkspaceSetting.FormShowInTaskbar] = false;
                spi = LayoutView;
            }
            else
            {
                spi = Activator.CreateInstance(smartPartInfoType) as ISmartPartInfo;
            }

            //spi.Description = Properties.Resources.FindCustomerResultsViewDescription;
            //spi.Title = "јдресный классификатор";

            return spi;
        }
コード例 #3
0
ファイル: MainLayoutView.cs プロジェクト: Ejik/chkaddr
        public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
        {
            ISmartPartInfo spi;
            if (smartPartInfoType.IsAssignableFrom(typeof(WindowSmartPartInfo)))
            {
                WindowSmartPartInfo LayoutView = new WindowSmartPartInfo();
                LayoutView.MaximizeBox = false;
                LayoutView.MinimizeBox = false;

                LayoutView.Keys[WindowWorkspaceSetting.FormBorderStyle] = FormBorderStyle.FixedDialog;
                LayoutView.Keys[WindowWorkspaceSetting.FormShowIcon] = false;
                LayoutView.Keys[WindowWorkspaceSetting.KeyPreview] = true;
                LayoutView.Keys[WindowWorkspaceSetting.TopMost] = true;
                LayoutView.Keys[WindowWorkspaceSetting.KeyDown] = new KeyEventHandler(View_KeyDown);
                spi = LayoutView;
            }
            else
            {
                spi = Activator.CreateInstance(smartPartInfoType) as ISmartPartInfo;
            }

            //spi.Description = Properties.Resources.FindCustomerResultsViewDescription;
            //spi.Title = "јдресный классификатор";

            return spi;
        }
コード例 #4
0
ファイル: SummaryView.cs プロジェクト: Ejik/Acotwin
        ISmartPartInfo ISmartPartInfoProvider.GetSmartPartInfo(Type smartPartInfoType)
        {
            ISmartPartInfo spi;
            if (smartPartInfoType.IsAssignableFrom(typeof(ACOT.Infrastructure.Interface.WindowSmartPartInfo)))
            {
                WindowSmartPartInfo LayoutView = new WindowSmartPartInfo();
                //LayoutView.Modal = true;
                //LayoutView.MinimizeBox = false;
                //LayoutView.MaximizeBox = false;
                LayoutView.ControlBox = true;

                //LayoutView.Keys[WindowWorkspaceSetting.FormBorderStyle] = FormBorderStyle.FixedDialog;
                LayoutView.Keys[WindowWorkspaceSetting.FormShowIcon] = false;
                //LayoutView.Keys[WindowWorkspaceSetting.StartPosition] = FormStartPosition.CenterParent;
                LayoutView.Keys[WindowWorkspaceSetting.AutoSize] = true;
                LayoutView.Keys[WindowWorkspaceSetting.KeyPreview] = true;

                //LayoutView.Width = 700;
                //LayoutView.Height = 400;

                spi = LayoutView;
            }
            else
            {
                spi = Activator.CreateInstance(smartPartInfoType) as ISmartPartInfo;
            }

            //spi.Description = Properties.Resources.FindCustomerResultsViewDescription;
            spi.Title = "”ниверсальный обмен данными в формате XML (2.0)";

            return spi;
        }
コード例 #5
0
ファイル: LayoutView.cs プロジェクト: Ejik/Acotwin
        ISmartPartInfo ISmartPartInfoProvider.GetSmartPartInfo(Type smartPartInfoType)
        {
            ISmartPartInfo spi;
            if (smartPartInfoType.IsAssignableFrom(typeof(ACOT.Infrastructure.Interface.WindowSmartPartInfo)))
            {
                WindowSmartPartInfo LayoutView = new WindowSmartPartInfo();
                LayoutView.Modal = true;
                LayoutView.MinimizeBox = false;
                LayoutView.MaximizeBox = false;
                LayoutView.ControlBox = false;

                //LayoutView.Width = ACOT.InfoViewModule.Properties.Settings.Default.Size.Width;
                //LayoutView.Height = ACOT.InfoViewModule.Properties.Settings.Default.Size.Height;
                //LayoutView.Location = ACOT.InfoViewModule.Properties.Settings.Default.Location;

                LayoutView.Keys[WindowWorkspaceSetting.FormBorderStyle] = FormBorderStyle.FixedToolWindow;
                LayoutView.Keys[WindowWorkspaceSetting.KeyPreview] = true;
                LayoutView.Keys[WindowWorkspaceSetting.KeyDown] = new KeyEventHandler(LayoutView_KeyDown);
                LayoutView.Keys[WindowWorkspaceSetting.FormShowIcon] = false;
                LayoutView.Keys[WindowWorkspaceSetting.StartPosition] = FormStartPosition.CenterParent;
                LayoutView.Keys[WindowWorkspaceSetting.AutoSize] = true;
                LayoutView.Keys[WindowWorkspaceSetting.FormShowInTaskbar] = true;

                spi = LayoutView;
            }
            else
            {
                spi = Activator.CreateInstance(smartPartInfoType) as ISmartPartInfo;
            }

            //spi.Description = Properties.Resources.FindCustomerResultsViewDescription;
            spi.Title = "Автоматизированная Система Оплаты Труда";

            return spi;
        }
コード例 #6
0
ファイル: LayoutView.cs プロジェクト: Ejik/Acotwin
        ISmartPartInfo ISmartPartInfoProvider.GetSmartPartInfo(Type smartPartInfoType)
        {
            ISmartPartInfo spi;
            if (smartPartInfoType.IsAssignableFrom(typeof(ACOT.Infrastructure.Interface.WindowSmartPartInfo)))
            {
                WindowSmartPartInfo LayoutView = new WindowSmartPartInfo();
                LayoutView.Modal = true;
                LayoutView.MinimizeBox = false;
                LayoutView.MaximizeBox = false;
                LayoutView.ControlBox = true;

                LayoutView.Keys[WindowWorkspaceSetting.FormBorderStyle] = FormBorderStyle.FixedDialog;
                LayoutView.Keys[WindowWorkspaceSetting.FormShowIcon] = false;
                LayoutView.Keys[WindowWorkspaceSetting.StartPosition] = FormStartPosition.CenterParent;
                LayoutView.Keys[WindowWorkspaceSetting.AutoSize] = true;
                LayoutView.Keys[WindowWorkspaceSetting.KeyPreview] = true;
                LayoutView.Keys[WindowWorkspaceSetting.KeyDown] = new KeyEventHandler(LayoutView_KeyDown);

                spi = LayoutView;
            }
            else
            {
                spi = Activator.CreateInstance(smartPartInfoType) as ISmartPartInfo;
            }

            //spi.Description = Properties.Resources.FindCustomerResultsViewDescription;
            spi.Title = "� ןנמדנאללו";

            return spi;
        }
コード例 #7
0
ファイル: LayoutView.cs プロジェクト: Ejik/Acotwin
        public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
        {
            ISmartPartInfo spi;
            if (smartPartInfoType.IsAssignableFrom(typeof(ACOT.Infrastructure.Interface.WindowSmartPartInfo)))
            {
                WindowSmartPartInfo wspi = new WindowSmartPartInfo();
                wspi.Modal = true;
                wspi.MinimizeBox = false;
                wspi.MaximizeBox = false;
                wspi.ControlBox = false;

                wspi.Keys[WindowWorkspaceSetting.FormBorderStyle] = FormBorderStyle.FixedDialog;
                wspi.Keys[WindowWorkspaceSetting.AcceptButton] = oKBtn;
                wspi.Keys[WindowWorkspaceSetting.CancelButton] = cancelBtn;
                wspi.Keys[WindowWorkspaceSetting.FormShowIcon] = false;
                wspi.Keys[WindowWorkspaceSetting.StartPosition] = FormStartPosition.CenterParent;
                wspi.Keys[WindowWorkspaceSetting.AutoSize] = true;

                spi = wspi;
            }
            else
            {
                spi = Activator.CreateInstance(smartPartInfoType) as ISmartPartInfo;
            }

            //spi.Description = Properties.Resources.FindCustomerResultsViewDescription;
            spi.Title = "¬ыбор организации";

            return spi;
        }
コード例 #8
0
ファイル: TreeMenuView.cs プロジェクト: Ejik/Acotwin
        ISmartPartInfo ISmartPartInfoProvider.GetSmartPartInfo(Type smartPartInfoType)
        {
            ISmartPartInfo spi;
            if (smartPartInfoType.IsAssignableFrom(typeof (WindowSmartPartInfo)))
            {
                WindowSmartPartInfo _LayoutView = new WindowSmartPartInfo();
                //LayoutView.Modal = true;
                _LayoutView.MinimizeBox = false;
                _LayoutView.MaximizeBox = false;
                _LayoutView.ControlBox = false;
                //_LayoutView.Location = ACOT.Infrastructure.Tree.Properties.Settings.Default.TreeLocation;
                //_LayoutView.Height = ACOT.Infrastructure.Tree.Properties.Settings.Default.TreeSize.Height;
                //_LayoutView.Width = ACOT.Infrastructure.Tree.Properties.Settings.Default.TreeSize.Width;

                _LayoutView.Keys[WindowWorkspaceSetting.FormBorderStyle] = FormBorderStyle.SizableToolWindow;
                _LayoutView.Keys[WindowWorkspaceSetting.FormShowIcon] = false;
                //_LayoutView.Keys[WindowWorkspaceSetting.Dock] = DockStyle.Left;
                _LayoutView.Keys[WindowWorkspaceSetting.AutoSize] = true;
                _LayoutView.Keys[WindowWorkspaceSetting.KeyPreview] = true;
                spi = _LayoutView;
            }
            else
            {
                spi = Activator.CreateInstance(smartPartInfoType) as ISmartPartInfo;
            }

            //spi.Description = Properties.Resources.FindCustomerResultsViewDescription;
            spi.Title = "ƒерево меню.";

            return spi;
        }