public void OpenProject()
        {
            string file;

            if (DialogUnity.OpenFile(Constant.OPEN_PROJECT_FILTER, out file))
            {
                OpenProject(file);
            }
        }
Exemple #2
0
        public void ImportImageResource()
        {
            string file;

            if (DialogUnity.OpenFile(Constant.RESOURCE_IMAGE_DIALOG_FILTER, out file) == false)
            {
                return;
            }
            string fileName = Path.GetFileName(file);

            if (_resourceArchive.Container(fileName))
            {
                if (MessageBox.Show(Language.Current.ResourceComponentService_OverrideConfirm,
                                    CommonLanguage.Current.MessageCaption_Notice,
                                    MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel)
                {
                    return;
                }
            }
            _resourceArchive.Add(file);
        }