/// /// Copyright (c) 2019 Sensus Slovensko a.s. /// using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using log4net; using Config.Entities; using Results; using Results.Resources; namespace Results.Forms { public partial class ManualEntryConfigDlg : Form { public IList SelectedItems { set { manualEntryConfigCtrl.SelectedItems = value; } get { return manualEntryConfigCtrl.SelectedItems; } } public ManualEntryConfigDlg() { InitializeComponent(); this.Icon = Properties.Resources.TBF_icon; manualEntryConfigCtrl.Unlocked = true; } void Localize() { Text = Strings.Configuration; okButton.Text = Strings.OkBtnText; cancelButton.Text = Strings.CancelBtnText; } void ManualEntryConfig_Load(object sender, EventArgs e) { Localize(); } void okButton_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; Close(); } private void cancelButton_Click(object sender, EventArgs e) { DialogResult = DialogResult.Cancel; Close(); } private void ManualEntryConfigDlg_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = true; } } }