private void InitUserControls() { home = new HomePageView(this); peopleInPageView = new PeopleInPageView(); allPeoplePageView = new AllPeoplePageView(this); readers = new ReadersPage(); cameraView = new CameraView(this); admins = new AdminsPage(adminId, this); adminProfile = new AdminProfile(adminId, this, admins); }
public async void DeleteCamera(string id, string videoStreamArn, string dataStreamName, string eventSourceUUID, string streamProcessorName, CameraView cv) { ProgressDialogController controller = await this.ShowProgressAsync("Please wait...", ""); controller.SetIndeterminate(); controller.SetCancelable(false); controller.SetMessage("Deleting event source mapping"); await Task.Run(() => Models.Lambda.DeleteEventSourceMapping(eventSourceUUID)); controller.SetMessage("Deleting data stream"); await Task.Run(() => Models.DataStream.DeleteDataStream(dataStreamName)); controller.SetMessage("Deleting video stream"); await Task.Run(() => Models.VideoStream.DeleteVideoStream(videoStreamArn)); controller.SetMessage("Deleting stream processor"); await Task.Run(() => Models.StreamProcessorManager.DeleteStreamProcessor(streamProcessorName)); controller.SetMessage("Deleting database record"); await Task.Run(() => Models.Dynamodb.DeleteItem(id, Models.MyAWSConfigs.CamerasDBTableName)); await controller.CloseAsync(); cv.LoadCamerasData().ConfigureAwait(false); notifyIcon.Visible = true; notifyIcon.ShowBalloonTip(1000, "Deleted", "Camera deleted Successfully", System.Windows.Forms.ToolTipIcon.Info); }
public AddNewCameraView(CameraView CameraView) { InitializeComponent(); this.CameraView = CameraView; }