Esempio n. 1
0
        public void Init_Operations_tsmis(ImageOperations_Factory operations)
        {
            result.Operations_tsmis       = new List <ToolStripMenuItem>();
            result.OperationsFamily_tsmis = new List <ToolStripMenuItem>();
            ToolStripMenuItem tmp_operations_tsmi = result.Menu_tsmis.Find(x => x.Name == "operations_tsmi");

            foreach (string key in operations.FamilyKeys())
            {
                ToolStripMenuItem new_tsmi = new ToolStripMenuItem()
                {
                    Name = key,
                    Text = key
                };

                if (operations.GetFamily(key).OperationsKeys() != null)
                {
                    foreach (var operationKey in operations.GetFamily(key).OperationsKeys())
                    {
                        ToolStripMenuItem new_Operation_tsmi = new ToolStripMenuItem()
                        {
                            Name = operationKey,
                            Text = operationKey
                        };

                        new_tsmi.DropDownItems.Add(new_Operation_tsmi);
                        result.Operations_tsmis.Add(new_Operation_tsmi);
                    }
                }

                tmp_operations_tsmi.DropDownItems.Add(new_tsmi);
                result.OperationsFamily_tsmis.Add(new_tsmi);
            }
        }
Esempio n. 2
0
        public Program()
        {
            ImageWindows = new List <ImageForm_Service>();

            LANGUAGE_FACTORY        = new Language_Factory();
            COLORSET_FACTORY        = new ColorSet_Factory();
            IMAGEOPERATIONS_FACTORY = new ImageOperations_Factory();
            POPUP_FACTORY           = new Popup_Factory();

            Build_MainWindow();
            Application.Run(MainWindow.Form);
        }