예제 #1
0
        public WavefrontConverterUI()
        {
            InitializeComponent();
            current = null;

            openDialog = new OpenFileDialog();
            saveDialog = new SaveFileDialog();

            converters = new Dictionary<string, WFFileConverter>();

            Android3DObjectConverter a3oConverter = new Android3DObjectConverter();

            converters.Add(a3oConverter.FormatName, a3oConverter);

            foreach(WFFileConverter c in converters.Values)
            {
                ToolStripMenuItem item = new ToolStripMenuItem(c.FormatName);
                item.Click += new EventHandler(ExportClick);
                mnuExportFile.DropDown.Items.Add(item);
            }
        }
예제 #2
0
        public WavefrontConverterUI()
        {
            InitializeComponent();
            current = null;

            openDialog = new OpenFileDialog();
            saveDialog = new SaveFileDialog();

            converters = new Dictionary <string, WFFileConverter>();

            Android3DObjectConverter a3oConverter = new Android3DObjectConverter();

            converters.Add(a3oConverter.FormatName, a3oConverter);

            foreach (WFFileConverter c in converters.Values)
            {
                ToolStripMenuItem item = new ToolStripMenuItem(c.FormatName);
                item.Click += new EventHandler(ExportClick);
                mnuExportFile.DropDown.Items.Add(item);
            }
        }