- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
public void Open()
{
_session.OpenSession();
_log = new LogOperations(_session.CurrentSession);
if (!_session.DBIsExists)
{
var dictList = new List<string>
{
#region Добавление всех текстовых ресурсов в список для записи в словарь базы
Resources.AllChannelsSelected,
Resources.ArchiveClearDone,
Resources.ARMShotdown,
Resources.BWConnected,
Resources.BWConnecting,
Resources.BWSelected,
Resources.BWServerName,
Resources.Cannot_create_0fly,
Resources.Cannot_create_1fly,
Resources.Cannot_delete_0fly,
Resources.Cannot_delete_1fly,
Resources.CannotDeleteImage,
Resources.CannotDeleteVideo,
Resources.CannotSaveImage,
Resources.ColorConnected,
Resources.ColorConnecting,
Resources.ColorSelected,
Resources.ColorServerName,
Resources.CoolingBreak,
Resources.CreateClientError,
Resources.FreeSpace20,
Resources.FreeSpace5,
Resources.ImageSend,
Resources.ImageSendASTK,
Resources.MainForm_OPUConnect,
Resources.MainForm_RecordStart,
Resources.MainForm_RecordStop,
Resources.OPUAngle,
Resources.OPUConnected,
Resources.OPUDisconnected,
Resources.OPUSavePoint,
Resources.OPUScanning,
Resources.OPUScanningNotChangedSet,
Resources.OPUWatching,
Resources.PanoNotExists,
Resources.Panorama_Processing,
Resources.Panorama_StreamError,
Resources.Panorama_Success,
Resources.PresetPointRewrite,
Resources.PresetPointSaved,
Resources.ReadDataError,
Resources.Restart,
Resources.RestartFailed,
Resources.SaveImage,
Resources.ScanSetRewrite,
Resources.ScanSetSave,
Resources.StartRecord,
Resources.StopRecord,
Resources.ThermalConnected,
Resources.ThermalConnecting,
Resources.ThermalCoolingTime,
Resources.ThermalOFF,
Resources.ThermalON,
Resources.ThermalReady,
Resources.ThermalSelected,
Resources.ThermalServerName,
Resources.ThermalWork,
Resources.UnknowError,
Resources.UnknowError2,
Resources.UserTypeCommander,
Resources.UserTypeDefault,
Resources.UserTypeOperator,
Resources.UserTypeSystemPreferences,
Resources.VideoArchivePlayText,
Resources.VideoSend,
Resources.VideoSendASTK
#endregion
};
_log.CreateDictionary(dictList);
}
}