static GlobalPropertyPicker()
 {
     color           = new PropertyWindow(309);
     gsWin           = new GUIStyle("box");
     gsWin.fontSize  = Util.GetPix(12);
     gsWin.alignment = TextAnchor.UpperRight;
 }
コード例 #2
0
        public void AddProperty()
        {
            if (CurrentItem.Product.Properties == null)
            {
                return;
            }

            if (CurrentItem.ItemPropertyMaps == null)
            {
                CurrentItem.ItemPropertyMaps = new List <PurchaseItemPropertyMap>();
            }


            var PItemPropertyMap = new PurchaseItemPropertyMap();

            PItemPropertyMap.PurchaseItemId = CurrentItem.Id;

            PItemPropertyMap.PropertyValues = new List <PurchaseItemPropertyValue>();
            foreach (CatalogItemPropertiesMap ProMap in CurrentItem.Product.Properties)
            {
                PurchaseItemPropertyValue PropertyValue = new PurchaseItemPropertyValue();
                PropertyValue.CatalogPropertyMasterId   = ProMap.CatalogPropertyMasterId;
                PropertyValue.CatalogItemPropertyMaster = ProMap.PropertyMaster;
                PropertyValue.PurchaseItemPropertyMapId = PItemPropertyMap.Id;
                PItemPropertyMap.PropertyValues.Add(PropertyValue);
            }
            if (PItemPropertyMap.PropertyValues.Count > 0)
            {
                PropertyValueViewModel pv = new PropertyValueViewModel(PItemPropertyMap.PropertyValues);
                PropertyWindow.ShowUI(pv);
                CurrentItem.ItemPropertyMaps.Add(PItemPropertyMap);
                OnPropertyChanged("PropertyValuesList");
            }
        }
コード例 #3
0
 private void btnProperties_Click_1(object sender, EventArgs e)
 {
     if (!prevLoaded)
     {
         PropertyForm = new PropertyWindow(); prevLoaded = true;
     }
     PropertyForm.Show();
 }
コード例 #4
0
 private void CreateStandardControls()
 {
     m_solutionExplorer = new SolutionExplorer();
     m_propertyWindow   = new PropertyWindow();
     m_toolbox          = new Toolbox();
     m_outputWindow     = new OutputWindow();
     m_taskList         = new TaskList();
     m_drawWindow       = new DrawWindow();
 }
コード例 #5
0
 private MainFormSerializer(NAntGuiForm form, PropertyWindow propertyWindow, ToolStrip standardToolStrip,
                            ToolStrip buildToolStrip)
 {
     _mainForm          = form;
     _mainForm.Load    += OnLoad;
     _mainForm.Closing += OnClosing;
     _propertyWindow    = propertyWindow;
     _standardToolStrip = standardToolStrip;
     _buildToolStrip    = buildToolStrip;
 }
コード例 #6
0
        private void CreateStandardControls()

        {
            m_solutionExplorer = new SolutionExplorer();
            m_propertyWindow   = new PropertyWindow();
            m_toolbox          = new Toolbox();
            m_sortie           = new OutputW.Form1();

            //   m_outputWindow = new OutputWindow();
        }
コード例 #7
0
ファイル: MainWindow.cs プロジェクト: ospringauf/dpqBench
 private void MenuPropertiesClick(object sender, EventArgs e)
 {
     if (PropertyWindow != null)
     {
         PropertyWindow.Close();
     }
     else
     {
         ShowSubWindow(PropertyWindow = new PhotoPropertyWindow());
     }
 }
コード例 #8
0
        private void m_btn_newProperty_Click(object sender, EventArgs e)
        {
            PropertyWindow pw = new PropertyWindow(m_entity, null);
            var            r  = pw.ShowDialog();

            if (r == DialogResult.OK)
            {
                m_entity.Properties.Add(pw.Property);
                ResetPropertiesView();
            }
        }
コード例 #9
0
ファイル: Workbench.cs プロジェクト: Gao851021/sinapse
        public Workbench(DockPanel dockPanel)
        {
            this.dockPanel = dockPanel;
            this.deserializeDockContent = new DeserializeDockContent(getContentFromPersistString);

            this.toolWorkplaceWindow = new WorkplaceExplorer(this);
            this.toolPropertyWindow  = new PropertyWindow(this);
            this.toolHistoryWindow   = new HistoryWindow(this);
            this.toolTaskWindow      = new TaskWindow(this);

            workplaceOpenDialog = new OpenFileDialog();
            documentOpenDialog  = new OpenFileDialog();
        }
コード例 #10
0
        //- ctor
        public pDesigner(PropertyWindow parent)
        {
            InitializeComponent();

            this._parent   = parent;
            this.BackColor = Color.Transparent;

            DesignSurfaceManager = new DesignSurfaceManagerExt();
            SetPropertyGridToParent();

            Toolbox   = null;
            this.Dock = DockStyle.Fill;
        }
コード例 #11
0
        private void PART_Mnu_Properties_Click(object sender, RoutedEventArgs e)
        {
            PropertyWindow winProperty = new PropertyWindow();

            winProperty.Owner   = App.MainAppWindow;
            winProperty.Topmost = App.MainAppWindow.Topmost;

            winProperty.ShowDialog();

            if (winProperty.DialogResult == true)
            {
                this.LoadAuthenticator(Settings.SettingsDatabase.SelectedAuthenticatorIndex);
            }
        }
コード例 #12
0
        private void m_btn_alterProperty_Click(object sender, EventArgs e)
        {
            if (!MakeSureSelectOne(m_lv_properties))
            {
                return;
            }

            var            p  = m_lv_properties.SelectedItems[0];
            PropertyWindow pw = new PropertyWindow(m_entity, m_entity.Properties.First(n => n.Name == p.SubItems[0].Text));
            var            r  = pw.ShowDialog();

            if (r == DialogResult.OK)
            {
                ResetPropertiesView();
            }
        }
コード例 #13
0
        public MainWindow(GraphicsMode gMode) : base(1600, 900, gMode,
                                                     "Cafe Shader Studio",
                                                     GameWindowFlags.Default,
                                                     DisplayDevice.Default,
                                                     3, 2, GraphicsContextFlags.Default)
        {
            Title += ": OpenGL Version: " + GL.GetString(StringName.Version);

            _config        = Config.Load();
            TimelineWindow = new TimelineWindow();
            Outliner       = new Outliner();
            Pipeline       = new Pipeline();
            PropertyWindow = new PropertyWindow();

            status = $"Loading global shaders...";
        }
コード例 #14
0
        private void m_btn_newProperty_Click(object sender, EventArgs e)
        {
            if (m_entity == null)
            {
                MessageBox.Show("没有加载", "提示");
                return;
            }

            PropertyWindow pw = new PropertyWindow(m_entity, null);
            var            r  = pw.ShowDialog();

            if (r == DialogResult.OK)
            {
                m_entity.Properties.Add(pw.Property);
                ResetPropertiesView();
            }
        }
コード例 #15
0
ファイル: PDF.cs プロジェクト: stuartaharrison/pdf-magik
        private void EncryptPDF()
        {
            try {
                if (base.SelectedItemPaths.Count() == 0 || base.SelectedItemPaths.Count() > 1)
                {
                    MessageBox.Show("Invalid selection has occured.", "PDF Magik - Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return;
                }

                string selectedPDFPath = base.SelectedItemPaths.First();
                var    window          = new PropertyWindow(selectedPDFPath, selectedPDFPath, false);
                window.Show();
            }
            catch (Exception ex) {
                MessageBox.Show(ex.Message, "PDF Magik - Critical Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
コード例 #16
0
 public void displayProperties(PropertyWindow form, object controlObject)
 {
     try
     {
         List <IEIBControl> currentcontrol = (List <IEIBControl>)controlObject;
         if (currentcontrol.Count == 1)
         {
             form.propertyGrid.SelectedObject = currentcontrol[0];
         }
         else
         {
             form.propertyGrid.SelectedObjects = (object[])currentcontrol.ToArray();
         }
         form.propertyGrid.Refresh();
     }
     catch (Exception exp)
     {
         Console.Write(exp.StackTrace);
     }
 }
コード例 #17
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     // Show warning of unsaved progress
     if (CurrentSaveStatus == SaveStatus.Unsaved)
     {
         var result = MessageBox.Show("There are unsaved annotations. Would you like to make a save first?\n" +
                                      "Click Yes to save before exit, \n" +
                                      "Click No to discard unsaved annotations, \n" +
                                      "Click Cancel to cancel exiting.",
                                      "Confirmation", MessageBoxButton.YesNoCancel, MessageBoxImage.Information);
         if (result == MessageBoxResult.Cancel)
         {
             e.Cancel = true;
             return;
         }
         else if (result == MessageBoxResult.Yes)
         {
             SaveCommand_Executed(null, null);
         }
     }
     // Close all windows
     PropertyWindow.ShouldReallyClose = true;
     PropertyWindow.Close();
 }
コード例 #18
0
        private void LoadUI(ContainerBuilder builder)
        {
            //IUserMessageService
            builder.Register(c => new UserMessageService()).As <IUserMessageService>().SingleInstance();

            //register console
            builder.Register(c => new ConsoleControl()).SingleInstance();

            //PropertyEditor
            builder.Register(c =>
            {
                var control = new PropertyWindow();
                control.Init(c.Resolve <IValidationProvider>(), c.Resolve <IUserMessageService>());
                return(control);
            }).AsSelf().As <IPropertyEditableObjectEditor>().SingleInstance();

            //Tree view launcher control
            builder.Register <MenuTreeViewControl>(c =>
            {
                var control = new MenuTreeViewControl();
                control.Init(GetTree(), GetContextMenus(c), c.Resolve <ResourceManager>());
                return(control);
            });
        }
コード例 #19
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            PropertyWindow pw = new PropertyWindow();

            pw.Show();
        }
コード例 #20
0
 internal static void Attach(NAntGuiForm form, PropertyWindow propertyWindow, ToolStrip standardToolStrip,
                             ToolStrip buildToolStrip)
 {
     new MainFormSerializer(form, propertyWindow, standardToolStrip, buildToolStrip);
 }
コード例 #21
0
        private void PART_Mnu_Properties_Click(object sender, RoutedEventArgs e)
        {
            PropertyWindow winProperty = new PropertyWindow();
            winProperty.Owner = App.MainAppWindow;
            winProperty.Topmost = App.MainAppWindow.Topmost;

            winProperty.ShowDialog();

            if (winProperty.DialogResult == true)
            {
                this.LoadAuthenticator(Settings.SettingsDatabase.SelectedAuthenticatorIndex);
            }
        }
コード例 #22
0
        private void menuItemPropertyWindow_Click_1(object sender, EventArgs e)
        {
            PropertyWindow propertyWindow = new PropertyWindow();

            propertyWindow.Show(dockPanel, DockState.DockRight);
        }