Ejemplo n.º 1
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            PropertyForm.Instance().FolderDialog.SelectedPath = value.ToString();
            var p = (GameProperty)context.Instance;

            if (PropertyForm.Instance().FolderDialog.ShowDialog() == DialogResult.OK)
            {
                PropertyForm.Instance().FolderDialog.Dispose();
                String v = PropertyForm.Instance().FolderDialog.SelectedPath;
                p.Path = v;
                return(v);
            }

            return(value);
        }
Ejemplo n.º 2
0
        public static void LinkGoEvent(object sender, EventArgs e)
        {
            if (sender is Label)
            {
                var label  = sender as Label;
                var target = label.Tag as String;
                if (target != null)
                {
                    switch (target)
                    {
                    case "ASSEMBLY":
                        if (!MainForm.Instance._tabbedPane.IsSelectionDisabled)
                        {
                            PropertyForm.Instance().ShowDialog(MainForm.Instance);
                        }
                        break;

                    default:
                        ProcessR.Start(target);
                        break;
                    }
                }
            }
        }