Exemple #1
0
        private void HandleToolAdded(object sender, ToolEventArgs e)
        {
            var button = new CommandMapToolButton(e.Tool);

            if (tools1.Children.Length <= tools2.Children.Length)
            {
                tools1.PackStart(button);
            }
            else
            {
                tools2.PackStart(button);
            }
        }
Exemple #2
0
        private void HandleToolAdded(object sender, ToolEventArgs e)
        {
            var button = new CommandMapToolButton (e.Tool);

            if(tools1.Children.Length <= tools2.Children.Length) {
                tools1.PackStart (button);
            } else {
                tools2.PackStart (button);
            }
        }