コード例 #1
0
        public AddNewTechStoreItemForm(ref TechStoreItemsManager tStorageItemsManager,
                                       string sTechStoreName, string sTechStoreSubGroupName, string sSubGroupNotes, string sSubGroupNotes1, string sSubGroupNotes2,
                                       bool PrintLabels)
        {
            InitializeComponent();

            bEdit        = true;
            bPrintLabels = PrintLabels;
            if (bPrintLabels)
            {
                SaveButton.Visible = false;
            }
            NewItemsDataGrid.AllowUserToAddRows    = false;
            NewItemsDataGrid.AllowUserToDeleteRows = false;

            TechStoreName         = sTechStoreName;
            TechStoreSubGroupName = sTechStoreSubGroupName;
            SubGroupNotes         = sSubGroupNotes;
            SubGroupNotes1        = sSubGroupNotes1;
            SubGroupNotes2        = sSubGroupNotes2;

            StorageItemsManager = tStorageItemsManager;
            Initialize();

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            StorageItemsManager.SetNewItemGrid(ref NewItemsDataGrid);

            while (!SplashForm.bCreated)
            {
                ;
            }
        }
コード例 #2
0
        public AddNewTechStoreItemForm(ref TechStoreItemsManager tStorageItemsManager)
        {
            InitializeComponent();

            StorageItemsManager = tStorageItemsManager;
            Initialize();
            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            StorageItemsManager.SetNewItemGrid(ref NewItemsDataGrid);

            while (!SplashForm.bCreated)
            {
                ;
            }
        }