migrate Settings codebase from MBS.Framework.UserInterface to MBS.Framework [from MBS.Framework a594833]

This commit is contained in:
Michael Becker 2021-02-15 22:18:11 -05:00
parent 2932bf2c87
commit bd836fd758
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C
9 changed files with 23 additions and 6 deletions

View File

@ -21,6 +21,9 @@
using System;
using System.Collections.Generic;
using MBS.Framework;
using MBS.Framework.Settings;
using MBS.Framework.UserInterface;
using MBS.Framework.UserInterface.Controls;
using MBS.Framework.UserInterface.Controls.ListView;
@ -307,14 +310,14 @@ namespace UniversalEditor.UserInterface.Dialogs
case ProjectTypeVariableType.FileOpen:
{
FileSetting co = new FileSetting(ptv.Name, ptv.Title);
co.Mode = FileDialogMode.Open;
co.Mode = FileSettingMode.Open;
sg.Settings.Add(co);
break;
}
case ProjectTypeVariableType.FileSave:
{
FileSetting co = new FileSetting(ptv.Name, ptv.Title);
co.Mode = FileDialogMode.Save;
co.Mode = FileSettingMode.Save;
sg.Settings.Add(co);
break;
}

View File

@ -19,7 +19,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using MBS.Framework.UserInterface;
using MBS.Framework;
using MBS.Framework.Settings;
using UniversalEditor.ObjectModels.FileSystem;
namespace UniversalEditor.Editors.FileSystem

View File

@ -21,6 +21,9 @@
using System;
using System.Text;
using MBS.Framework;
using MBS.Framework.Settings;
using MBS.Framework.UserInterface;
using MBS.Framework.UserInterface.Controls;
using MBS.Framework.UserInterface.Controls.ListView;

View File

@ -21,6 +21,9 @@
using System;
using System.Collections.Generic;
using System.Text;
using MBS.Framework;
using MBS.Framework.Settings;
using MBS.Framework.UserInterface;
using MBS.Framework.UserInterface.Dialogs;
@ -87,8 +90,8 @@ namespace UniversalEditor.UserInterface
FileSetting fs = new FileSetting(option.PropertyName, option.Title, (string)option.GetValue());
switch (option.DialogMode)
{
case CustomOptionFileDialogMode.Open: fs.Mode = FileDialogMode.Open; break;
case CustomOptionFileDialogMode.Save: fs.Mode = FileDialogMode.Save; break;
case CustomOptionFileDialogMode.Open: fs.Mode = FileSettingMode.Open; break;
case CustomOptionFileDialogMode.Save: fs.Mode = FileSettingMode.Save; break;
}
sg.Settings.Add(fs);
}

View File

@ -19,6 +19,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using MBS.Framework;
using MBS.Framework.Settings;
using MBS.Framework.UserInterface;
using MBS.Framework.UserInterface.Controls;
using MBS.Framework.UserInterface.Dialogs;

View File

@ -24,6 +24,7 @@ using System.Collections.Generic;
using MBS.Framework;
using MBS.Framework.Drawing;
using MBS.Framework.Settings;
using MBS.Framework.UserInterface;
using MBS.Framework.UserInterface.Controls;
using MBS.Framework.UserInterface.Dialogs;

View File

@ -19,7 +19,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using MBS.Framework.UserInterface;
using MBS.Framework;
using MBS.Framework.Settings;
using UniversalEditor.ObjectModels.NewWorldComputing.Map;
namespace UniversalEditor.Plugins.NewWorldComputing.UserInterface.Editors.NewWorldComputing.Map

View File

@ -19,6 +19,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using MBS.Framework;
using MBS.Framework.UserInterface;
using UniversalEditor.ObjectModels.NewWorldComputing.Map;
using UniversalEditor.UserInterface;

View File

@ -20,6 +20,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using System.Collections.Generic;
using MBS.Framework;
using MBS.Framework.Settings;
using MBS.Framework.UserInterface;
using MBS.Framework.UserInterface.Controls;
using MBS.Framework.UserInterface.Controls.ListView;