Files
Macro-Deck/MacroDeck/GUI/Dialogs/RestoreBackupDialog.cs
Will 563e301227 Feature/refactor cottle (#406)
* cleanup usings (to global)

* refactor template rendering and add custom cottle functions
2023-06-05 14:21:40 +02:00

52 lines
1.9 KiB
C#

using System.Windows.Forms;
using SuchByte.MacroDeck.Backup;
using SuchByte.MacroDeck.GUI.CustomControls;
using SuchByte.MacroDeck.Language;
namespace SuchByte.MacroDeck.GUI.Dialogs;
public partial class RestoreBackupDialog : DialogForm
{
public RestoreBackupDialog()
{
InitializeComponent();
lblWhatToRestore.Text = LanguageManager.Strings.WhatDoYouWantToRestore;
checkRestoreConfig.Text = LanguageManager.Strings.Configuration;
checkRestoreProfiles.Text = LanguageManager.Strings.Profiles;
checkRestoreDevices.Text = LanguageManager.Strings.KnownDevices;
checkRestoreVariables.Text = LanguageManager.Strings.Variables;
checkRestorePlugins.Text = LanguageManager.Strings.InstalledPlugins;
checkRestorePluginConfigs.Text = LanguageManager.Strings.PluginConfigurations;
checkRestorePluginCredentials.Text = LanguageManager.Strings.PluginCredentials;
checkRestoreIconPacks.Text = LanguageManager.Strings.InstalledIconPacks;
btnRestore.Text = LanguageManager.Strings.Restore;
}
public RestoreBackupInfo RestoreBackupInfo
{
get
{
var restoreBackupInfo = new RestoreBackupInfo
{
RestoreConfig = checkRestoreConfig.Checked,
RestoreProfiles = checkRestoreProfiles.Checked,
RestoreDevices = checkRestoreDevices.Checked,
RestoreVariables = checkRestoreVariables.Checked,
RestorePlugins = checkRestorePlugins.Checked,
RestorePluginConfigs = checkRestorePluginConfigs.Checked,
RestorePluginCredentials = checkRestorePluginCredentials.Checked,
RestoreIconPacks = checkRestoreIconPacks.Checked
};
return restoreBackupInfo;
}
}
private void BtnRestore_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
}