Exemplo n.º 1
0
        private void buttonOpenCif_Click(object sender, EventArgs e)
        {
            if (LoadedAsset.AssetFilePath == null)
            {
                MessageBox.Show("You must first save the RPC asset");
                return;
            }
            _cifForm = new CommeillFautWF.MainForm();
            var asset = _cifForm.SelectAndOpenAssetFromBrowser();

            if (asset == null)
            {
                return;
            }

            LoadedAsset.CommeillFautAssetSource = asset.AssetFilePath;
            SetModified();
            ReloadEditor();
        }
Exemplo n.º 2
0
        private void buttonNewCIF_Click(object sender, EventArgs e)
        {
            if (LoadedAsset.AssetFilePath == null)
            {
                MessageBox.Show("You must first save the RPC asset");
                return;
            }

            _cifForm = new CommeillFautWF.MainForm();
            var asset = _cifForm.CreateAndSaveEmptyAsset(false);

            if (asset == null)
            {
                return;
            }

            LoadedAsset.CommeillFautAssetSource = asset.AssetFilePath;
            SetModified();
            ReloadEditor();
        }