Пример #1
0
        public MainForm()
        {
            InitializeComponent();
                
            Address = Settings.Default.ServerIpOrDns;
            UseHttps = Settings.Default.UseHttps;
            Username = Settings.Default.Username;
            Password = Settings.Default.Password;
            Port = "";

            Text = Address;

            if (!String.IsNullOrEmpty(Settings.Default.Port))
            {
                Port = ":" + Settings.Default.Port;
            }

            _synoCommand = Address == "server.domain.com" ? new SynoCommand() : new SynoCommand(Url, Username, Password);

            labelLoading.MouseDown += MainFormMouseDown;
            labelLoading.DoubleClick += MainFormDoubleClick;
        }
Пример #2
0
 public void ShowDialog(SynoCommand synoCommand, ICamEvent camEvent)
 {
     _filePath = synoCommand.DownloadEvent(camEvent, FileDownloadCompleted, ProgressChanged);
     ShowDialog();
 }
Пример #3
0
 public Disconnect(SynoCommand synoCommand)
 {
     _synoCommand = synoCommand;
     InitializeComponent();
     Shown += OnShown;
 }
Пример #4
0
 public void ShowDialog(SynoCommand command)
 {
     _synoCommand = command;
     ShowDialog();
 }