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; }
public void ShowDialog(SynoCommand synoCommand, ICamEvent camEvent) { _filePath = synoCommand.DownloadEvent(camEvent, FileDownloadCompleted, ProgressChanged); ShowDialog(); }
public Disconnect(SynoCommand synoCommand) { _synoCommand = synoCommand; InitializeComponent(); Shown += OnShown; }
public void ShowDialog(SynoCommand command) { _synoCommand = command; ShowDialog(); }