| | |
| | | { |
| | | IPManageModal modal = new IPManageModal(log) |
| | | { |
| | | Title = "新增", |
| | | Title = this.lang("App.Add"), |
| | | Owner = Window.GetWindow(this), |
| | | }; |
| | | if (modal.Open(-1, new IPManage(), IPManages, SettingFilePath) == true) |
| | | { |
| | | this.Success("新增成功"); |
| | | this.Success(this.lang("App.AddSuccess")); |
| | | } |
| | | } |
| | | |
| | |
| | | OpenFileDialog dialog = new OpenFileDialog(); |
| | | ////该值确定是否可以选择多个文件 |
| | | dialog.Multiselect = false; |
| | | dialog.Title = "请选择文件"; |
| | | dialog.Filter = "execl文件(*.xlsx;*.xls)|*.xlsx;*.xls"; |
| | | dialog.Title = this.lang("App.SelectFile"); |
| | | dialog.Filter = "execl(*.xlsx;*.xls)|*.xlsx;*.xls"; |
| | | if (dialog.ShowDialog() == true) |
| | | { |
| | | MonitorTimer.Enabled = false; |
| | |
| | | catch (Exception ex) |
| | | { |
| | | log.Error("Import Failed.", ex); |
| | | MsgBoxHelper.Error(this, $"导入失败!{ex.Message}"); |
| | | MsgBoxHelper.Error(this, $"{this.lang("App.ImportFailed")}: {ex.Message}"); |
| | | } |
| | | } |
| | | } |
| | |
| | | catch (Exception ex) |
| | | { |
| | | log.Error("Active Execute Failed.", ex); |
| | | MsgBoxHelper.ErrorMessage(this, $"插件激活失败!{ex.Message}"); |
| | | MsgBoxHelper.ErrorMessage(this, $"{this.lang("DIO.ActivateFailed")}: {ex.Message}"); |
| | | } |
| | | return null; |
| | | } |